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 12, 2026 02:37Yuriy LyfenkoYuriy LyfenkoScore: 3,161Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 12, 2026 02:243,157118,180,88190,549,0001,006,0002,281,472
2Apr 12, 2026 02:243,157121,293,79690,550,0001,006,0002,281,472
3Apr 12, 2026 02:243,158116,572,36290,571,0001,006,0002,400,256
4Apr 12, 2026 02:243,159125,540,25991,611,00002,281,472
5Apr 12, 2026 02:243,159120,022,60291,622,00002,400,256
6Apr 12, 2026 02:373,159118,980,00590,594,0001,006,0002,396,160
7Apr 12, 2026 02:243,161116,837,19490,664,0001,007,0002,482,176
8Apr 12, 2026 02:373,161123,222,24990,658,0001,007,0002,273,280
9Apr 12, 2026 02:243,162121,135,72591,709,00002,281,472
10Apr 12, 2026 02:243,164119,238,59290,750,000997,0002,281,472
11Apr 12, 2026 02:373,164119,291,63689,760,0001,994,0002,281,472
12Apr 12, 2026 02:243,166117,892,15189,815,0001,995,0002,281,472