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 04:04Yuriy LyfenkoYuriy LyfenkoScore: 6,221Success
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 04:045,688495,761,419164,938,506027,459,584
2Sep 22, 2021 04:045,750449,995,223166,757,084027,455,488
3Sep 22, 2021 04:045,794489,429,196168,029,952027,451,392
4Sep 22, 2021 04:046,166371,471,956145,420,00033,407,00033,722,368
5Sep 22, 2021 04:046,208369,892,426154,015,00026,016,00033,996,800
6Sep 22, 2021 04:046,219388,665,036152,520,00027,824,00033,521,664
7Sep 22, 2021 04:046,221393,734,513150,015,00030,408,00033,820,672
8Sep 22, 2021 04:046,227387,396,714149,302,00031,272,00033,718,272
9Sep 22, 2021 04:046,229393,175,846145,290,00035,340,00034,631,680
10Sep 22, 2021 04:046,233385,980,942157,514,00023,257,00033,710,080
11Sep 22, 2021 04:046,240394,126,874141,900,00039,046,00034,783,232
12Sep 22, 2021 04:046,241390,906,066157,566,00023,422,00033,804,288