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 23, 2026 17:03Charles CabergsCharles CabergsScore: 3,804Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 17:043,801131,522,817107,230,0003,006,0002,514,944
2Apr 23, 2026 17:043,804133,104,050108,330,0002,006,0002,506,752
3Apr 23, 2026 17:043,804131,025,285107,328,0003,009,0002,519,040
4Apr 23, 2026 17:043,804126,529,340107,324,0003,009,0002,519,040
5Apr 23, 2026 17:043,804131,563,306108,313,0002,005,0002,514,944
6Apr 23, 2026 17:043,805132,771,367108,352,0002,006,0002,514,944
7Apr 23, 2026 17:043,809129,578,904110,487,00002,510,848
8Apr 23, 2026 17:043,810129,395,075108,509,0002,009,0002,510,848
9Apr 23, 2026 17:043,811129,337,689109,527,0001,004,0002,510,848