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 21:13TudyMTudyMScore: 4,148Success
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 21:144,148138,079,607119,281,0001,032,0002,379,776
2May 3, 2026 21:144,148135,481,165119,272,0001,030,0002,359,296
3May 3, 2026 21:144,148139,465,284120,317,00002,367,488
4May 3, 2026 21:144,148134,525,558119,279,0001,025,0002,359,296
5May 3, 2026 21:144,148137,366,848119,262,0001,049,0002,371,584
6May 3, 2026 21:144,148139,325,197119,262,0001,038,0002,367,488
7May 3, 2026 21:144,148138,013,877119,269,0001,041,0002,363,392
8May 3, 2026 21:144,151139,832,571119,322,0001,070,0002,367,488
9May 3, 2026 21:144,153138,652,241119,433,0001,024,0002,367,488