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 14:22Yuriy LyfenkoYuriy LyfenkoScore: 5,884Success
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 14:225,6671,000,163,428164,340,341027,455,488
2Sep 22, 2021 14:225,704948,420,897165,418,768027,451,392
3Sep 22, 2021 14:225,716964,158,935165,760,820027,463,680
4Sep 22, 2021 14:225,864876,656,690139,055,00031,012,00033,374,208
5Sep 22, 2021 14:225,868887,003,098140,800,00029,375,00033,951,744
6Sep 22, 2021 14:225,877873,738,462144,620,00025,825,00033,640,448
7Sep 22, 2021 14:225,884871,541,790143,043,00027,587,00033,951,744
8Sep 22, 2021 14:225,897873,368,583139,017,00032,003,00033,755,136
9Sep 22, 2021 14:225,901886,094,947139,296,00031,839,00033,980,416
10Sep 22, 2021 14:225,909886,569,374144,366,00027,003,00033,959,936
11Sep 22, 2021 14:225,921876,758,241139,583,00032,134,00033,701,888
12Sep 22, 2021 14:225,925884,067,470138,050,00033,767,00034,148,352