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 18:58Ilya AniskovetsIlya AniskovetsScore: 6,326Success
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 18:586,306394,572,706152,560,00030,310,00033,849,344
2Sep 20, 2021 18:586,308537,381,562182,931,379027,459,584
3Sep 20, 2021 18:586,313389,494,043151,891,00031,183,00033,669,120
4Sep 20, 2021 18:586,319483,205,601183,247,355027,402,240
5Sep 20, 2021 18:586,320395,066,321152,911,00030,379,00033,579,008
6Sep 20, 2021 18:586,324393,207,552153,859,00029,549,00033,320,960
7Sep 20, 2021 18:586,326380,067,200152,044,00031,422,00034,467,840
8Sep 20, 2021 18:586,335387,873,003155,302,00028,421,00033,832,960
9Sep 20, 2021 18:586,336386,743,953156,746,00026,989,00034,369,536
10Sep 20, 2021 18:586,337468,007,989183,786,964027,406,336
11Sep 20, 2021 18:586,342390,925,280153,591,00030,314,00033,996,800
12Sep 20, 2021 18:586,362375,850,601155,789,00028,698,00033,718,272