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 30, 2026 12:04Victor MerckléVictor MerckléScore: 3,077Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 12:043,075107,256,04688,188,0001,002,0002,355,200
2Apr 30, 2026 12:043,077106,024,40588,244,0001,002,0002,351,104
3Apr 30, 2026 12:043,077104,769,52188,233,0001,002,0002,355,200
4Apr 30, 2026 12:043,077104,813,51788,232,0001,002,0002,351,104
5Apr 30, 2026 12:043,077105,378,43888,242,0001,002,0002,363,392
6Apr 30, 2026 12:043,078107,534,23788,280,0001,003,0002,347,008
7Apr 30, 2026 12:043,078103,207,88888,277,0001,003,0002,318,336
8Apr 30, 2026 12:043,078101,613,99288,266,0001,003,0002,351,104
9Apr 30, 2026 12:043,078106,196,99188,281,0001,003,0002,355,200