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 18, 2026 22:03Charles CabergsCharles CabergsScore: 5,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 22:035,391179,104,454156,348,00002,523,136
2Apr 18, 2026 22:035,399187,522,126154,552,0002,007,0002,265,088
3Apr 18, 2026 22:035,409181,312,248154,862,0001,998,0002,289,664
4Apr 18, 2026 22:035,412182,322,339155,940,000999,0002,289,664
5Apr 18, 2026 22:035,414181,297,882153,993,0002,999,0002,289,664
6Apr 18, 2026 22:035,417183,008,717155,095,0002,001,0002,289,664
7Apr 18, 2026 22:035,418182,732,554154,131,0003,002,0002,523,136
8Apr 18, 2026 22:035,420186,367,276156,168,0001,001,0002,289,664
9Apr 18, 2026 22:035,421183,281,088154,198,0003,003,0002,510,848