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 9, 2026 05:32olliecrowolliecrowScore: 3,667Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 9, 2026 05:323,662129,068,185105,192,0001,001,0002,363,392
2Apr 9, 2026 05:323,663133,956,601105,215,0001,002,0002,363,392
3Apr 9, 2026 05:363,664127,558,562106,260,00002,355,200
4Apr 9, 2026 05:323,665132,584,414104,276,0002,005,0002,281,472
5Apr 9, 2026 05:323,665127,561,400104,292,0002,005,0002,351,104
6Apr 9, 2026 05:363,666129,060,313106,301,00002,281,472
7Apr 9, 2026 05:323,667127,756,269105,343,0001,003,0002,367,488
8Apr 9, 2026 05:323,667130,860,179105,347,0001,003,0002,281,472
9Apr 9, 2026 05:323,668134,305,387104,360,0002,006,0002,363,392
10Apr 9, 2026 05:323,668138,064,011104,375,0002,007,0002,355,200
11Apr 9, 2026 05:323,669127,270,666105,389,0001,003,0002,359,296
12Apr 9, 2026 05:363,670129,400,476105,438,0001,004,0002,281,472