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:12Yuriy LyfenkoYuriy LyfenkoScore: 5,872Success
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:125,713448,590,865165,678,917027,451,392
2Sep 22, 2021 14:125,756472,251,677166,909,721027,451,392
3Sep 22, 2021 14:125,768509,338,981167,279,373027,451,392
4Sep 22, 2021 14:125,861364,226,657138,969,00030,993,00034,242,560
5Sep 22, 2021 14:125,862361,680,661142,179,00027,817,00033,689,600
6Sep 22, 2021 14:125,864377,677,401138,863,00031,193,00033,976,320
7Sep 22, 2021 14:125,872374,393,334141,554,00028,721,00034,168,832
8Sep 22, 2021 14:125,872371,912,711142,414,00027,863,00033,640,448
9Sep 22, 2021 14:125,876369,899,421141,663,00028,743,00034,013,184
10Sep 22, 2021 14:125,879362,307,401141,743,00028,759,00033,701,888
11Sep 22, 2021 14:125,881376,960,584139,272,00031,285,00033,964,032
12Sep 22, 2021 14:125,893377,919,042138,112,00032,789,00033,980,416