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 22, 2021 03:22Yuriy LyfenkoYuriy LyfenkoScore: 6,461Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 03:226,011474,895,408174,327,276027,459,584
2Sep 22, 2021 03:226,046488,856,608175,342,443027,455,488
3Sep 22, 2021 03:226,056474,417,845175,633,158027,459,584
4Sep 22, 2021 03:226,449376,393,134155,013,00032,002,00033,718,272
5Sep 22, 2021 03:226,457388,228,318159,625,00027,627,00033,906,688
6Sep 22, 2021 03:226,458381,078,506157,924,00029,357,00033,718,272
7Sep 22, 2021 03:226,461397,520,653160,460,00026,915,00033,992,704
8Sep 22, 2021 03:226,463392,912,778159,772,00027,652,00033,640,448
9Sep 22, 2021 03:226,469410,024,276153,041,00034,557,00033,701,888
10Sep 22, 2021 03:226,480394,016,509155,923,00031,984,00034,164,736
11Sep 22, 2021 03:226,485382,258,296162,993,00025,075,00034,078,720
12Sep 22, 2021 03:226,503403,601,422158,161,00030,415,00033,505,280