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 CabergsError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 16:11Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 16:11012,927,8831,230,0001,149,00020,480No answer to stdout. Died or killed?
2Apr 23, 2026 17:043,801131,522,817107,230,0003,006,0002,514,944
3Apr 23, 2026 17:043,804133,104,050108,330,0002,006,0002,506,752
4Apr 23, 2026 17:043,804131,025,285107,328,0003,009,0002,519,040
5Apr 23, 2026 17:043,804126,529,340107,324,0003,009,0002,519,040
6Apr 23, 2026 17:043,804131,563,306108,313,0002,005,0002,514,944
7Apr 23, 2026 17:043,805132,771,367108,352,0002,006,0002,514,944
8Apr 23, 2026 17:043,809129,578,904110,487,00002,510,848
9Apr 23, 2026 17:043,810129,395,075108,509,0002,009,0002,510,848
10Apr 23, 2026 17:043,811129,337,689109,527,0001,004,0002,510,848