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 28, 2026 10:16TudyMTudyMScore: 4,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 10:214,756150,205,432135,947,0001,999,0002,457,600
2Apr 28, 2026 10:214,757154,647,034135,981,0001,999,0002,301,952
3Apr 28, 2026 10:214,758156,220,917135,990,0001,999,0002,371,584
4Apr 28, 2026 10:214,763152,015,946136,146,0002,002,0002,371,584
5Apr 28, 2026 10:214,764158,502,609136,155,0002,002,0002,367,488
6Apr 28, 2026 10:214,765155,546,734137,205,0001,001,0002,371,584
7Apr 28, 2026 10:214,765156,814,465137,201,0001,001,0002,367,488
8Apr 28, 2026 10:214,766157,306,000138,220,00002,371,584
9Apr 28, 2026 10:214,767158,767,454137,258,0001,001,0002,371,584