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 29, 2026 21:16Victor MerckléVictor MerckléScore: 3,821Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 21:163,814133,215,036109,623,0001,005,0002,351,104
2Apr 29, 2026 21:163,818129,562,122109,716,0001,006,0002,527,232
3Apr 29, 2026 21:163,818129,953,273108,729,0001,995,0002,527,232
4Apr 29, 2026 21:163,820128,158,930108,794,0001,996,0002,523,136
5Apr 29, 2026 21:163,821130,497,700108,840,0001,997,0002,523,136
6Apr 29, 2026 21:163,822124,822,458108,855,0001,997,0002,523,136
7Apr 29, 2026 21:163,823129,056,480108,892,0001,998,0002,531,328
8Apr 29, 2026 21:163,824130,415,400108,923,0001,998,0002,527,232
9Apr 29, 2026 21:163,825131,169,500108,942,0001,998,0002,342,912