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:33TudyMTudyMScore: 4,080Success
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:344,076137,069,889118,220,00002,375,680
2May 3, 2026 21:344,077132,649,856117,239,0001,021,0002,371,584
3May 3, 2026 21:344,077136,133,602117,221,0001,034,0002,363,392
4May 3, 2026 21:344,078136,543,234117,223,0001,059,0002,375,680
5May 3, 2026 21:344,080135,970,113117,302,0001,030,0002,371,584
6May 3, 2026 21:344,086137,667,580117,470,0001,049,0002,375,680
7May 3, 2026 21:344,088133,040,181117,546,0001,017,0002,367,488
8May 3, 2026 21:344,088135,493,795117,517,0001,037,0002,375,680
9May 3, 2026 21:344,089136,829,264117,534,0001,056,0002,379,776