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 StreminScore: 6,826Success
Source Code

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

Challenge History

No challenges yet.

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