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 21, 2026 23:41olliecrowolliecrowScore: 4,932Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 23:434,900150,288,244140,100,0002,001,0002,379,776
2Apr 21, 2026 23:434,920150,810,031140,677,0002,009,0002,330,624
3Apr 21, 2026 23:434,928154,793,761140,928,0001,998,0002,306,048
4Apr 21, 2026 23:434,928150,108,320138,919,0003,997,0002,379,776
5Apr 21, 2026 23:434,932150,296,412141,040,0002,000,0002,379,776
6Apr 21, 2026 23:434,935150,207,908140,124,0003,002,0002,437,120
7Apr 21, 2026 23:434,936150,355,815139,157,0004,004,0002,359,296
8Apr 21, 2026 23:434,945150,580,512141,409,0002,005,0002,355,200
9Apr 21, 2026 23:434,946150,650,237142,431,0001,003,0002,363,392