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 listSep 9, 2026 22:21Tomislav TunkovicTomislav TunkovicScore: 2,242Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 22:282,24073,472,75962,075,0002,902,00020,480
2Sep 9, 2026 22:282,24073,471,63962,065,0002,898,00020,480
3Sep 9, 2026 22:282,24173,613,49562,343,0002,673,00020,480
4Sep 9, 2026 22:282,24273,475,44062,118,0002,907,00020,480
5Sep 9, 2026 22:282,24273,496,18862,082,0002,943,00020,480
6Sep 9, 2026 22:282,24373,554,23162,130,0002,942,00020,480
7Sep 9, 2026 22:282,24473,618,17862,146,0002,942,00020,480
8Sep 9, 2026 22:282,24573,618,16262,165,0002,956,00020,480
9Sep 9, 2026 22:282,25275,372,44162,109,0003,202,00020,480