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 listJan 2, 2026 06:13Josu San MartinJosu San MartinScore: 5,343Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 06:135,339182,054,366153,836,000998,0002,379,776
2Jan 2, 2026 06:165,341186,188,933152,901,0001,998,0002,375,680
3Jan 2, 2026 06:165,343180,534,277152,939,0001,999,0002,281,472
4Jan 2, 2026 06:165,343179,527,577152,955,0001,999,0002,371,584
5Jan 2, 2026 06:135,344185,832,668152,989,0001,999,0002,379,776
6Jan 2, 2026 06:135,345177,859,113153,003,0002,000,0002,535,424