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 30, 2026 22:09olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 04:56Haha Expert10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 05:04049,536,95132,778,0002,037,0002,158,592line 5: expected -10 got 0
2Sep 9, 2026 05:04045,207,67332,786,0002,062,0002,129,920line 5: expected -10 got 0
3Sep 9, 2026 05:04044,901,98632,934,0002,050,0002,129,920line 5: expected -10 got 0
4Apr 30, 2026 22:114,642151,853,024132,637,0002,009,0002,347,008
5Apr 30, 2026 22:114,648155,742,779132,823,0001,997,0002,498,560
6Apr 30, 2026 22:114,654143,232,943131,991,0002,999,0002,383,872
7Apr 30, 2026 22:114,655143,205,027133,013,0002,000,0002,363,392
8Apr 30, 2026 22:114,656143,215,368132,044,0003,001,0002,363,392
9Apr 30, 2026 22:114,656143,304,741134,045,0001,000,0002,359,296
10Apr 30, 2026 22:114,657143,322,429132,052,0003,001,0002,363,392
11Apr 30, 2026 22:114,658143,216,257132,084,0003,001,0002,416,640
12Apr 30, 2026 22:114,665143,333,838133,294,0002,004,0002,383,872