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 21, 2021 04:46Yuriy LyfenkoYuriy LyfenkoScore: 6,821Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 04:466,591965,709,672191,141,414027,451,392
2Sep 21, 2021 04:466,606987,752,668191,566,060027,410,432
3Sep 21, 2021 04:466,6351,028,335,731192,428,763027,439,104
4Sep 21, 2021 04:466,811896,170,803171,042,00026,470,00033,497,088
5Sep 21, 2021 04:466,814881,241,102168,508,00029,087,00033,746,944
6Sep 21, 2021 04:466,819891,287,510170,379,00027,382,00034,209,792
7Sep 21, 2021 04:466,821917,233,319171,154,00026,646,00034,320,384
8Sep 21, 2021 04:466,825891,989,456165,276,00032,659,00033,742,848
9Sep 21, 2021 04:466,827906,485,840167,840,00030,151,00033,632,256
10Sep 21, 2021 04:466,851903,552,949171,028,00027,651,00034,115,584
11Sep 21, 2021 04:466,857908,595,890171,471,00027,394,00033,603,584
12Sep 21, 2021 04:466,881910,078,204173,569,00025,983,00035,454,976