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 listFeb 26, 2026 03:21Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 09:13C#_user10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 09:13045,508,24635,770,0001,109,0002,117,632line 5: expected -10 got 0
2Sep 9, 2026 09:13045,738,37636,037,0001,127,0002,117,632line 5: expected -10 got 0
3Sep 9, 2026 09:13045,505,29935,742,0001,123,0002,117,632line 5: expected -10 got 0
4Jan 3, 2026 04:443,822137,489,215109,828,000998,0002,371,584
5Jan 3, 2026 04:443,822139,103,477108,831,0001,996,0002,363,392
6Jan 3, 2026 04:443,822141,316,945109,835,000998,0002,371,584
7Jan 3, 2026 04:443,822139,720,591109,842,000998,0002,383,872
8Jan 3, 2026 04:443,822137,571,239109,844,000998,0002,371,584
9Jan 3, 2026 04:443,822135,995,818109,845,000998,0002,379,776
10Jan 3, 2026 04:443,822135,938,468109,847,000998,0002,371,584
11Jan 3, 2026 04:443,822134,676,279108,854,0001,997,0002,375,680
12Feb 26, 2026 03:213,822138,120,196108,841,0001,997,0002,375,680
13Jan 3, 2026 04:443,823131,670,487110,865,00002,371,584
14Feb 26, 2026 03:213,823133,355,885109,858,000998,0002,367,488
15Feb 26, 2026 03:213,824134,597,053108,886,0001,997,0002,363,392