Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listApr 10, 2026 10:51limanjun99limanjun99Score: 5,820Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 11:205,811193,714,400167,505,0001,003,0002,351,104
2Apr 10, 2026 10:515,812191,814,151167,534,0001,003,0002,351,104
3Apr 10, 2026 11:205,814194,792,138167,604,0001,003,0002,293,760
4Apr 10, 2026 11:205,815192,429,072167,637,0001,003,0002,293,760
5Apr 10, 2026 10:515,816195,550,415168,663,00002,351,104
6Apr 10, 2026 11:205,816193,684,919168,650,00002,293,760
7Apr 10, 2026 11:205,817196,744,914166,694,0001,996,0002,293,760
8Apr 10, 2026 10:515,818193,863,700167,712,000998,0002,293,760
9Apr 10, 2026 10:515,820196,176,317167,773,000998,0002,355,200
10Apr 10, 2026 11:205,820196,703,458166,796,0001,997,0002,359,296
11Apr 10, 2026 10:515,821193,369,493166,806,0001,997,0002,351,104
12Apr 10, 2026 10:515,821199,138,889167,812,000998,0002,293,760
13Apr 10, 2026 10:515,821197,056,375167,800,000998,0002,293,760
14Apr 10, 2026 10:515,821193,909,665166,799,0001,997,0002,285,568
15Apr 10, 2026 11:205,821192,934,503167,813,000998,0002,293,760
16Apr 10, 2026 10:515,822199,470,238166,827,0001,997,0002,293,760
17Apr 10, 2026 11:205,822194,481,718166,828,0001,997,0002,293,760
18Apr 10, 2026 11:205,825190,315,478166,931,0001,999,0002,355,200