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 listSep 13, 2026 19:28Andrew EpsteinAndrew EpsteinScore: 44,506Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2026 19:2944,4911,299,072,6171,289,237,0001,010,0002,121,728stderr
2Sep 13, 2026 19:2944,4921,299,139,9261,289,281,0001,001,0002,121,728stderr
3Sep 13, 2026 19:2944,5001,299,451,8151,289,508,0001,009,0002,121,728stderr
4Sep 13, 2026 19:2944,5041,299,539,0871,289,575,0001,047,0002,121,728stderr
5Sep 13, 2026 19:2944,5061,299,573,1831,289,532,0001,159,0002,121,728stderr
6Sep 13, 2026 19:2944,5091,299,615,8871,289,671,0001,099,0002,121,728stderr
7Sep 13, 2026 19:2944,5101,299,771,1281,289,605,0001,186,0002,121,728stderr
8Sep 13, 2026 19:2944,5111,299,955,8411,289,817,0001,004,0002,121,728stderr
9Sep 13, 2026 19:2944,5131,299,770,2191,289,754,0001,130,0002,121,728stderr