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 listJan 2, 2026 05:41Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:29Tomislav Tunkovic10.80CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:300181,758,744160,100,00012,984,0002,117,632line 43: expected -648787913916294 got 652569692694608
2Sep 9, 2026 08:300180,591,253159,782,00012,468,0002,117,632line 25: expected -751456089038195 got 751456089038189
3Sep 9, 2026 08:300181,010,228159,899,00012,709,0002,117,632line 46: expected 1788920339479686 got -1798544474543952
4Jan 2, 2026 05:415,154175,295,322148,462,0001,003,0002,375,680
5Jan 2, 2026 05:415,154170,565,357148,470,0001,003,0002,281,472
6Jan 2, 2026 05:415,156171,289,996148,523,0001,003,0002,281,472
7Jan 2, 2026 05:415,156170,516,415149,534,00002,293,760
8Jan 2, 2026 05:415,157175,105,735148,546,0001,003,0002,281,472
9Jan 2, 2026 05:415,157170,688,322148,556,0001,003,0002,281,472
10Jan 2, 2026 05:415,158176,611,332148,585,0001,003,0002,281,472
11Jan 2, 2026 05:415,158180,176,099148,587,0001,003,0002,375,680
12Jan 2, 2026 05:415,159173,662,630148,604,0001,004,0002,273,280