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 28, 2026 09:55TudyMTudyMScore: 4,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 09:564,829158,209,813138,058,0002,000,0002,371,584
2Apr 28, 2026 09:564,832159,761,522138,127,0002,001,0002,383,872
3Apr 28, 2026 09:564,833156,384,474139,161,0001,001,0002,392,064
4Apr 28, 2026 09:564,833156,075,041139,177,0001,001,0002,322,432
5Apr 28, 2026 09:564,834160,575,873137,198,0003,004,0002,392,064
6Apr 28, 2026 09:564,834158,409,226139,211,0001,001,0002,387,968
7Apr 28, 2026 09:564,838158,112,271138,317,0002,004,0002,387,968
8Apr 28, 2026 09:564,840156,630,322139,373,0001,002,0002,318,336
9Apr 28, 2026 09:564,843162,109,832139,455,0001,003,0002,379,776