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 26, 2026 22:47olliecrowolliecrowScore: 3,935Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 22:473,927127,297,466111,892,0001,998,0002,465,792
2Apr 26, 2026 22:473,930133,580,969111,979,0001,999,0002,465,792
3Apr 26, 2026 22:473,931127,626,245112,011,0002,000,0002,469,888
4Apr 26, 2026 22:473,933132,150,571113,082,0001,000,0002,473,984
5Apr 26, 2026 22:473,935133,570,338113,116,0001,001,0002,469,888
6Apr 26, 2026 22:473,936128,763,441113,171,0001,001,0002,469,888
7Apr 26, 2026 22:473,939132,534,337113,254,0001,002,0002,473,984
8Apr 26, 2026 22:473,944130,897,144113,378,0001,003,0002,473,984
9Apr 26, 2026 22:473,944134,718,858113,373,0001,003,0002,461,696