import math # --- Esercizi 3967 - 3990 --- def sol_3967(): # 7.320 / 24 return 7320 // 24 def sol_3968(): # 10.000 - (600 + 700) * 4 return 10000 - (600 + 700) * 4 def sol_3969(): # 40% di 60.000 return int(60000 * 0.40) def sol_3970(): # Quota parte 70€ su 300g, 400g, 700g (tot 1400g) unit = 70 / 1400 return int(300 * unit), int(400 * unit), int(700 * unit) def sol_3971(): return 10**5 def sol_3972(): return 2**5 def sol_3973(): gcd = math.gcd(378, 630) return f"{378//gcd}/{630//gcd}" def sol_3974(): return 10**4 def sol_3975(): return 10**6 def sol_3976(): return 2**6 def sol_3977(): return math.isqrt(4)**3 def sol_3978(): return 4**3 def sol_3979(): return 5 * 6 * 7 def sol_3980(): return 2 * 3 * 4 def sol_3981(): return f"{3*5}/{4*7}" def sol_3982(): gcd = math.gcd(12, 20) return f"{12//gcd}/{20//gcd}" def sol_3983(): return (2**4) * (5**4) def sol_3984(): return "4 elevato alla quinta" def sol_3985(): return (2**2) * 8 def sol_3986(): return 1910 def sol_3987(): num, den = 3 * 4, 8 * 5 gcd = math.gcd(num, den) return f"{num//gcd}/{den//gcd}" def sol_3988(): return 1296 // 108 def sol_3989(): return round(125**(1/3)) def sol_3990(): return f"{math.isqrt(36)}/{math.isqrt(49)}" # --- Esercizi 3991 - 4023 --- def sol_3991(): return math.isqrt(3**4) def sol_3992(): return "55/12" def sol_3993(): return -1 def sol_3994(): return "19/15" def sol_3995(): return "1/2" def sol_3996(): return (72 // 8) + 1 - 3 def sol_3997(): return 6 + (5 - (7 - 4)) - (12 // 3) def sol_3998(): return ((12 + 8) // 5) + ((44 - 34) * 2) + 1 def sol_3999(): return 3 + 7 - (6 // 2) def sol_4000(): return 10 def sol_4001(): return 9 def sol_4002(): return 3**3 def sol_4003(): return 500 - 150 def sol_4004(): return math.isqrt(27 * 12) def sol_4005(): return int(650 * 0.80) def sol_4006(): return int(30 * 0.90) def sol_4007(): return int(35 * 0.60) def sol_4008(): return int(750 * 0.80) def sol_4009(): return int(300 * 0.97) def sol_4010(): return int(1100 * 0.90) def sol_4011(): return int(2000 * 0.75) def sol_4012(): return int(225 * 0.80) def sol_4013(): return int(450 * 0.80) def sol_4014(): return int(550 * 0.80) def sol_4015(): return int(150000 * 0.94) def sol_4016(): return int(20000 * 0.88) def sol_4017(): return int(300000 * 0.93) def sol_4018(): return int(120000 * 0.89) def sol_4019(): return int(60 * 0.95) def sol_4020(): return int(9000 * 0.92) def sol_4021(): return int(25 * 0.80) def sol_4022(): return int(120 * 0.90) def sol_4023(): return int(900 * 0.70) # --- Esercizi 4024 - 4041 --- def sol_4024(): return (75 * 4) // 3 def sol_4025(): return (2**3)**2 def sol_4026(): return "a=(c-b)/2" def sol_4027(): return "a=(-c+d+be)/e" def sol_4028(): return "b=2A/h" def sol_4029(): return "b=c-2a" def sol_4030(): return "b=(c-d+ae)/e" def sol_4031(): return 0.28**3 def sol_4032(): return "6 e 10" def sol_4033(): return "<" def sol_4034(): return "<" def sol_4035(): return ">" def sol_4036(): return "<" def sol_4037(): return "<" def sol_4038(): return ">" def sol_4039(): return "<" def sol_4040(): return "<" def sol_4041(): return "<" # Execution runner if __name__ == "__main__": for i in range(3967, 4042): fn_name = f"sol_{i}" if fn_name in globals(): print(f"Esercizio {i}: {globals()[fn_name]()}")
Hosted & Compiled with HtmlRunner.com