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:34TudyMTudyMScore: 4,096Success
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:354,087136,521,371117,521,0001,026,0002,371,584
2May 3, 2026 21:354,088134,618,644117,563,0001,008,0002,379,776
3May 3, 2026 21:354,089132,073,197118,596,00002,371,584
4May 3, 2026 21:354,096134,306,885117,766,0001,041,0002,383,872
5May 3, 2026 21:354,096135,635,309118,793,00002,363,392
6May 3, 2026 21:354,096136,761,104117,766,0001,036,0002,375,680
7May 3, 2026 21:354,097135,187,060117,785,0001,032,0002,367,488
8May 3, 2026 21:354,100135,966,374117,862,0001,054,0002,367,488
9May 3, 2026 21:354,113138,030,068118,206,0001,078,0002,371,584