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 listMay 3, 2026 20:28TudyMTudyMScore: 4,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:284,539147,209,871131,631,00002,383,872
2May 3, 2026 20:284,541150,060,572131,701,00002,371,584
3May 3, 2026 20:284,547148,279,148130,818,0001,049,0002,355,200
4May 3, 2026 20:284,547146,865,807130,818,0001,047,0002,367,488
5May 3, 2026 20:284,547151,545,701130,824,0001,062,0002,363,392
6May 3, 2026 20:284,548148,677,721131,910,00002,371,584
7May 3, 2026 20:284,549148,321,017130,920,0001,023,0002,359,296
8May 3, 2026 20:284,551148,007,580130,942,0001,046,0002,371,584
9May 3, 2026 20:284,556151,115,086131,098,0001,053,0002,363,392