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 listAug 23, 2021 19:48Sergey StreminSergey StreminError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 8, 2026 15:52C#_user146.50CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 8, 2026 15:52053,080,00342,006,0001,040,0002,117,632line 1: expected 32767 got 18640905368128
2Sep 8, 2026 15:52052,881,00741,801,0001,030,0002,117,632line 1: expected 32767 got 18640905368128
3Sep 8, 2026 15:52052,944,80341,928,0001,028,0002,117,632line 1: expected 32767 got 18640905368128
4Aug 23, 2021 19:486,600456,654,638191,405,429027,402,240
5Aug 23, 2021 19:486,602486,420,049191,449,310027,406,336
6Aug 23, 2021 19:486,603462,613,844191,485,523027,406,336
7Aug 23, 2021 19:486,630491,342,778192,265,204027,402,240
8Aug 23, 2021 19:486,632483,462,090192,321,801027,463,680
9Aug 23, 2021 19:486,641494,095,139192,585,802027,459,584
10Aug 23, 2021 19:486,798385,626,739167,823,00029,318,00033,882,112
11Aug 23, 2021 19:486,803389,799,276162,943,00034,355,00034,004,992
12Aug 23, 2021 19:486,806410,543,720175,332,00022,047,00033,587,200
13Aug 23, 2021 19:486,808401,559,248167,365,00030,065,00033,816,576
14Aug 23, 2021 19:486,823392,066,499168,601,00029,278,00034,205,696
15Aug 23, 2021 19:486,824420,385,953177,578,00020,325,00033,865,728
16Aug 23, 2021 19:486,826388,991,729168,819,00029,141,00034,263,040
17Aug 23, 2021 19:486,828403,041,803164,514,00033,493,00033,259,520
18Aug 23, 2021 19:486,836410,974,422167,037,00031,193,00033,361,920
19Aug 23, 2021 19:486,838402,919,579168,655,00029,642,00033,730,560
20Aug 23, 2021 19:486,839395,204,028171,613,00026,718,00033,886,208
21Aug 23, 2021 19:486,840402,206,792168,999,00029,347,00033,652,736
22Aug 23, 2021 19:486,841408,124,877172,556,00025,831,00033,492,992
23Aug 23, 2021 19:486,843410,345,760173,388,00025,068,00033,640,448
24Aug 23, 2021 19:486,845406,887,956170,723,00027,768,00033,779,712
25Aug 23, 2021 19:486,854387,617,611161,550,00037,205,00033,886,208
26Aug 23, 2021 19:486,883415,095,783170,083,00029,535,00034,168,832
27Aug 23, 2021 19:486,956433,369,669168,272,00033,451,00037,371,904