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 5, 2026 05:07Victor MerckléVictor MerckléScore: 3,063Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 05:073,063106,737,21587,768,0001,079,0002,359,296
2May 5, 2026 05:073,063103,499,18887,797,0001,055,0002,351,104
3May 5, 2026 05:073,063102,709,32487,781,0001,060,0002,338,816
4May 5, 2026 05:073,063102,875,11387,775,0001,055,0002,355,200
5May 5, 2026 05:073,063107,489,44587,774,0001,068,0002,359,296
6May 5, 2026 05:073,063106,216,42987,769,0001,077,0002,347,008
7May 5, 2026 05:073,064104,505,42987,788,0001,073,0002,351,104
8May 5, 2026 05:073,065103,971,72487,836,0001,076,0002,363,392
9May 5, 2026 05:073,066107,432,04587,829,0001,095,0002,355,200