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 11, 2026 23:38Yuriy LyfenkoYuriy LyfenkoScore: 3,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2026 23:383,894137,048,896110,927,0001,998,0002,392,064
2Apr 11, 2026 23:383,895135,224,430111,964,000999,0002,387,968
3Apr 11, 2026 23:383,896133,430,869110,981,0001,999,0002,281,472
4Apr 11, 2026 23:383,897133,360,607112,020,0001,000,0002,494,464
5Apr 11, 2026 23:383,899137,943,712112,085,0001,000,0002,281,472
6Apr 11, 2026 23:383,901136,183,215112,123,0001,001,0002,379,776
7Apr 11, 2026 23:383,902140,414,731111,163,0002,002,0002,281,472
8Apr 11, 2026 23:383,938136,477,194114,206,00002,265,088
9Apr 11, 2026 23:383,947140,814,259113,456,000995,0002,387,968