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 28, 2021 08:17Ilya AniskovetsIlya AniskovetsScore: 6,571Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 08:176,469478,591,317187,593,749027,455,488
2Sep 28, 2021 08:176,493478,023,220188,308,328027,455,488
3Sep 28, 2021 08:176,527559,981,243189,271,226027,463,680
4Sep 28, 2021 08:176,556391,303,309158,273,00031,853,00033,640,448
5Sep 28, 2021 08:176,559401,134,051157,338,00032,861,00033,718,272
6Sep 28, 2021 08:176,570370,573,610160,282,00030,241,00033,964,032
7Sep 28, 2021 08:176,571387,781,246163,042,00027,513,00033,906,688
8Sep 28, 2021 08:176,593406,494,312164,320,00026,869,00033,648,640
9Sep 28, 2021 08:176,601395,830,315164,535,00026,905,00033,976,320
10Sep 28, 2021 08:176,603408,290,898163,839,00027,647,00034,373,632
11Sep 28, 2021 08:176,618383,446,868165,107,00026,829,00033,849,344
12Sep 28, 2021 08:176,668409,120,113159,653,00033,715,00033,751,040