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:15TudyMTudyMScore: 4,709Success
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:164,703152,933,036135,355,0001,038,0002,367,488
2May 3, 2026 20:164,703152,489,314135,386,0001,007,0002,375,680
3May 3, 2026 20:164,707150,943,161135,477,0001,027,0002,359,296
4May 3, 2026 20:164,708151,501,418135,520,0001,021,0002,375,680
5May 3, 2026 20:164,709151,259,354135,517,0001,045,0002,371,584
6May 3, 2026 20:164,713152,880,573135,664,0001,027,0002,371,584
7May 3, 2026 20:164,715152,705,529135,705,0001,038,0002,367,488
8May 3, 2026 20:164,718156,352,702135,763,0001,061,0002,367,488
9May 3, 2026 20:164,722155,657,492135,834,0001,105,0002,371,584