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 listSep 20, 2021 19:00Ilya AniskovetsIlya AniskovetsScore: 6,831Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 19:006,802475,535,301197,260,512027,455,488
2Sep 20, 2021 17:566,811408,622,717169,877,00027,630,00033,632,256
3Sep 20, 2021 19:006,817399,083,521171,821,00025,876,00033,837,056
4Sep 20, 2021 17:566,820385,164,129166,960,00030,808,00033,583,104
5Sep 20, 2021 17:566,821504,015,497197,806,565027,447,296
6Sep 20, 2021 17:566,823412,829,263167,733,00030,131,00033,554,432
7Sep 20, 2021 19:006,824396,159,671170,200,00027,683,00033,734,656
8Sep 20, 2021 19:006,826538,101,777197,958,592027,455,488
9Sep 20, 2021 17:566,827478,152,867197,969,203027,455,488
10Sep 20, 2021 19:006,828402,195,890160,339,00037,670,00033,554,432
11Sep 20, 2021 19:006,829406,157,716161,156,00036,891,00033,800,192
12Sep 20, 2021 17:566,831400,698,594174,922,00023,182,00034,103,296
13Sep 20, 2021 17:566,831407,280,610165,244,00032,849,00034,013,184
14Sep 20, 2021 17:566,833407,647,765172,357,00025,802,00033,976,320
15Sep 20, 2021 19:006,834401,463,125169,582,00028,604,00034,287,616
16Sep 20, 2021 17:566,837385,863,263169,664,00028,618,00033,382,400
17Sep 20, 2021 17:566,844404,726,895168,241,00030,222,00033,980,416
18Sep 20, 2021 17:566,849486,928,217198,624,592027,455,488
19Sep 20, 2021 17:566,853395,816,540167,623,00031,115,00034,209,792
20Sep 20, 2021 19:006,863411,083,650166,518,00032,515,00034,013,184
21Sep 20, 2021 19:006,867409,124,263168,825,00030,327,00033,906,688
22Sep 20, 2021 19:006,876494,847,757199,405,333027,451,392
23Sep 20, 2021 19:006,887393,367,040169,311,00030,415,00034,631,680
24Sep 20, 2021 19:006,892394,794,160173,834,00026,023,00033,718,272