Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.68 KB | None | 0 0
  1. from flask import Flask
  2.  
  3. base = 1
  4. list_count = []
  5. PowerItem = 8
  6. FirstBattle = base
  7. FirstBattle_count = 0
  8. FirstBattlePKRS = base * 2
  9. FirstBattlePKRS_count = 0
  10. FirstWithPower = base + PowerItem
  11. FirstWithPower_count = 0
  12. FirstWithPowerAndPKRS = (base+PowerItem) * 2
  13. FirstWithPowerAndPKRS_count = 0
  14.  
  15. # PokeJobs ( 4 ev each hour + 8 power item) * 2 (pok3rus)
  16.  
  17. ALittleWhile = 4
  18. ALittleWhile_count = 0
  19. ALittleWhilePKRS = ALittleWhile * 2
  20. ALittleWhilePKRS_count = 0
  21. ALittleWhilePower = ALittleWhile + PowerItem
  22. ALittleWhilePower_count = 0
  23. ALittleWhilePowerPKRS = ALittleWhilePower * 2
  24. ALittleWhilePowerPKRS_count = 0
  25.  
  26. VeryShort = 8
  27. VeryShort_count = 0
  28. VeryShortPKRS = VeryShort * 2
  29. VeryShortPKRS_count = 0
  30. VeryShortPower = VeryShort + PowerItem
  31. VeryShortPower_count = 0
  32. VeryShortPowerPKRS = VeryShortPower * 2
  33. VeryShortPowerPKRS_count = 0
  34.  
  35. Short = 12
  36. Short_count = 0
  37. ShortPKRS = Short * 2
  38. ShortPKRS_count = 0
  39. ShortPower = Short + PowerItem
  40. ShortPower_count = 0
  41. ShortPowerPKRS = ShortPower * 2
  42. ShortPowerPKRS_count = 0
  43.  
  44. Long = 16
  45. Long_count = 0
  46. LongPKRS = Long * 2
  47. LongPKRS_count = 0
  48. LongPower = Long + PowerItem
  49. LongPower_count = 0
  50. LongPowerPKRS = LongPower * 2
  51. LongPowerPKRS_count = 0
  52.  
  53. VeryLong = 32
  54. VeryLong_count = 0
  55. VeryLongPKRS = VeryLong * 2
  56. VeryLongPKRS_count = 0
  57. VeryLongPower = VeryLong + PowerItem
  58. VeryLongPower_count = 0
  59. VeryLongPowerPKRS = VeryShortPower * 2
  60. VeryLongPowerPKRS_count = 0
  61.  
  62. HalfDay = 48
  63. HalfDay_count = 0
  64. HalfDayPKRS = HalfDay * 2
  65. HalfDayPKRS_count = 0
  66. HalfDayPower = HalfDay + PowerItem
  67. HalfDayPower_count = 0
  68. HalfDayPowerPKRS = HalfDayPower * 2
  69. HalfDayPowerPKRS_count = 0
  70.  
  71. WholeDay = 96
  72. WholeDay_count = 0
  73. WholeDayPKRS = WholeDay * 2
  74. WholeDayPKRS_count = 0
  75. WholeDayPower = WholeDay + PowerItem
  76. WholeDayPower_count = 0
  77. WholeDayPowerPKRS = WholeDayPower * 2
  78. WholeDayPowerPKRS_count = 0
  79.  
  80.  
  81. target = int(input("{Please Enter A Wanted EV \n"))
  82. currentEV = int(input("Please Enter Your Current EV Stat \n"))
  83. original_currentEV = currentEV
  84.  
  85. # FirstBattle
  86.  
  87. while FirstBattle + currentEV <= target:
  88. currentEV += FirstBattle
  89. FirstBattle_count += 1
  90. list_count.append(FirstBattle_count)
  91.  
  92.  
  93. currentEV = original_currentEV
  94. while FirstBattlePKRS + currentEV <= target:
  95. currentEV += FirstBattlePKRS
  96. FirstBattlePKRS_count += 1
  97. list_count.append(FirstBattlePKRS_count)
  98.  
  99. currentEV = original_currentEV
  100. while FirstWithPower + currentEV <= target:
  101. currentEV += FirstBattlePKRS
  102. FirstBattlePKRS_count += 1
  103. list_count.append(FirstBattlePKRS_count)
  104.  
  105. currentEV = original_currentEV
  106. while FirstWithPowerAndPKRS + currentEV <= target:
  107. currentEV += FirstWithPowerAndPKRS
  108. FirstWithPowerAndPKRS_count += 1
  109. list_count.append(FirstWithPowerAndPKRS_count)
  110.  
  111. # A littleWhile
  112.  
  113. currentEV = original_currentEV
  114. while ALittleWhile + currentEV <= target:
  115. currentEV += ALittleWhile
  116. ALittleWhile_count += 1
  117. list_count.append(ALittleWhile_count)
  118.  
  119. currentEV = original_currentEV
  120. while ALittleWhilePKRS + currentEV <= target:
  121. currentEV += ALittleWhilePKRS
  122. ALittleWhilePKRS_count += 1
  123. list_count.append(ALittleWhilePower_count)
  124.  
  125. currentEV = original_currentEV
  126. while ALittleWhilePower + currentEV <= target:
  127. currentEV += ALittleWhilePower
  128. ALittleWhilePower_count += 1
  129. list_count.append(ALittleWhilePower_count)
  130.  
  131. currentEV = original_currentEV
  132. while ALittleWhilePowerPKRS + currentEV <= target:
  133. currentEV += ALittleWhilePowerPKRS
  134. ALittleWhilePowerPKRS_count += 1
  135. list_count.append(ALittleWhilePowerPKRS_count)
  136.  
  137. # VeryShort
  138.  
  139. currentEV = original_currentEV
  140. while VeryShort + currentEV <= target:
  141. currentEV += VeryShort
  142. VeryShort_count += 1
  143. list_count.append(VeryShort_count)
  144.  
  145. currentEV = original_currentEV
  146. while VeryShortPKRS + currentEV <= target:
  147. currentEV += VeryShortPKRS
  148. VeryShortPKRS_count += 1
  149. list_count.append(VeryShortPower_count)
  150.  
  151. currentEV = original_currentEV
  152. while VeryShortPower + currentEV <= target:
  153. currentEV += VeryShortPower
  154. VeryShortPower_count += 1
  155. list_count.append(VeryShortPower_count)
  156.  
  157. currentEV = original_currentEV
  158. while VeryShortPowerPKRS + currentEV <= target:
  159. currentEV += VeryShortPowerPKRS
  160. VeryShortPowerPKRS_count += 1
  161. list_count.append(VeryShortPowerPKRS_count)
  162.  
  163. # Short
  164.  
  165. currentEV = original_currentEV
  166. while Short + currentEV <= target:
  167. currentEV += Short
  168. Short_count += 1
  169. list_count.append(Short_count)
  170.  
  171. currentEV = original_currentEV
  172. while ShortPKRS + currentEV <= target:
  173. currentEV += ShortPKRS
  174. ShortPKRS_count += 1
  175. list_count.append(ShortPKRS_count)
  176.  
  177. currentEV = original_currentEV
  178. while ShortPower + currentEV <= target:
  179. currentEV += ShortPower
  180. ShortPower_count += 1
  181. list_count.append(ShortPower_count)
  182.  
  183. currentEV = original_currentEV
  184. while ShortPowerPKRS + currentEV <= target:
  185. currentEV += ShortPowerPKRS
  186. ShortPowerPKRS_count += 1
  187. list_count.append(ShortPower_count)
  188.  
  189. # Long
  190.  
  191. currentEV = original_currentEV
  192. while Long + currentEV <= target:
  193. currentEV += Long
  194. Long_count += 1
  195. list_count.append(Long_count)
  196.  
  197.  
  198. currentEV = original_currentEV
  199. while LongPKRS + currentEV <= target:
  200. currentEV += LongPKRS
  201. LongPKRS_count += 1
  202. list_count.append(LongPKRS_count)
  203.  
  204.  
  205. currentEV = original_currentEV
  206. while LongPower + currentEV <= target:
  207. currentEV += LongPower
  208. LongPower_count += 1
  209. list_count.append(LongPower_count)
  210.  
  211.  
  212. currentEV = original_currentEV
  213. while LongPowerPKRS + currentEV <= target:
  214. currentEV += LongPowerPKRS
  215. LongPowerPKRS_count += 1
  216. list_count.append(LongPowerPKRS_count)
  217.  
  218. # VeryLong
  219.  
  220. currentEV = original_currentEV
  221. while VeryLong + currentEV <= target:
  222. currentEV += VeryLong
  223. VeryLong_count += 1
  224. list_count.append(VeryLong_count)
  225.  
  226.  
  227. currentEV = original_currentEV
  228. while VeryLongPKRS + currentEV <= target:
  229. currentEV += VeryLongPKRS
  230. VeryLongPKRS += 1
  231. list_count.append(VeryLongPKRS_count)
  232.  
  233.  
  234. currentEV = original_currentEV
  235. while VeryLongPower + currentEV <= target:
  236. currentEV += VeryLongPower
  237. VeryLongPower_count += 1
  238. list_count.append(VeryLongPower_count)
  239.  
  240.  
  241. currentEV = original_currentEV
  242. while VeryLongPowerPKRS + currentEV <= target:
  243. currentEV += VeryLongPowerPKRS
  244. VeryLongPowerPKRS += 1
  245. list_count.append(VeryLongPKRS_count)
  246.  
  247.  
  248. # HalfDay
  249.  
  250. currentEV = original_currentEV
  251. while HalfDay + currentEV <= target:
  252. currentEV += HalfDay
  253. HalfDay_count += 1
  254. list_count.append(HalfDay_count)
  255.  
  256.  
  257. currentEV = original_currentEV
  258. while HalfDayPKRS + currentEV <= target:
  259. currentEV += HalfDayPKRS
  260. HalfDayPKRS_count += 1
  261. list_count.append(HalfDayPKRS_count)
  262.  
  263. currentEV = original_currentEV
  264. while HalfDayPower + currentEV <= target:
  265. currentEV += HalfDayPower
  266. HalfDayPower_count += 1
  267. list_count.append(HalfDayPower_count)
  268.  
  269. currentEV = original_currentEV
  270. while HalfDayPowerPKRS + currentEV <= target:
  271. currentEV += HalfDayPowerPKRS
  272. HalfDayPowerPKRS_count += 1
  273. list_count.append(HalfDayPowerPKRS_count)
  274.  
  275. # WholeDay
  276.  
  277. currentEV = original_currentEV
  278. while WholeDay + currentEV <= target:
  279. currentEV += WholeDay
  280. WholeDay_count += 1
  281. list_count.append(WholeDay_count)
  282.  
  283. currentEV = original_currentEV
  284. while WholeDayPKRS + currentEV <= target:
  285. currentEV += WholeDayPKRS
  286. WholeDayPKRS_count += 1
  287. list_count.append(WholeDayPKRS_count)
  288.  
  289. currentEV = original_currentEV
  290. while WholeDayPower + currentEV <= target:
  291. currentEV += WholeDayPower
  292. WholeDayPower_count += 1
  293. list_count.append(WholeDayPower_count)
  294.  
  295. currentEV = original_currentEV
  296. while WholeDayPowerPKRS + currentEV <= target:
  297. currentEV += WholeDayPowerPKRS
  298. WholeDayPowerPKRS_count += 1
  299. list_count.append(WholeDayPowerPKRS_count)
  300.  
  301. min_list = min(list_count)
  302.  
  303. print(list_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement