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 listMay 3, 2026 20:42TudyMTudyMScore: 4,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:464,443146,758,647128,847,00002,371,584
2May 3, 2026 20:464,445146,842,341127,873,0001,048,0002,371,584
3May 3, 2026 20:464,445146,959,103128,910,00002,367,488
4May 3, 2026 20:464,445148,813,643127,905,0001,016,0002,367,488
5May 3, 2026 20:464,448146,337,305127,999,0001,019,0002,371,584
6May 3, 2026 20:464,448145,309,184129,015,00002,379,776
7May 3, 2026 20:464,450145,760,500129,074,00002,367,488
8May 3, 2026 20:464,454148,177,995128,106,0001,066,0002,371,584
9May 3, 2026 20:464,458152,721,480128,252,0001,043,0002,359,296