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:54Yuriy LyfenkoYuriy LyfenkoScore: 6,125Success
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:546,084873,930,967141,343,00035,092,00033,660,928
2Sep 21, 2021 04:546,099892,860,031148,734,00028,139,00033,587,200
3Sep 21, 2021 04:546,103864,176,622141,204,00035,784,00033,574,912
4Sep 21, 2021 04:546,105885,856,285144,410,00032,640,00033,652,736
5Sep 21, 2021 04:546,115882,631,408146,281,00031,059,00033,992,704
6Sep 21, 2021 04:546,121883,221,022146,429,00031,091,00033,751,040
7Sep 21, 2021 04:546,125865,605,299144,883,00032,747,00033,669,120
8Sep 21, 2021 04:546,126894,740,022148,215,00029,440,00034,238,464
9Sep 21, 2021 04:546,130863,705,257149,006,00028,773,00033,976,320
10Sep 21, 2021 04:546,436981,488,047186,644,317027,451,392
11Sep 21, 2021 04:546,4911,098,849,219188,248,497027,455,488
12Sep 21, 2021 04:546,503961,923,240188,581,517027,414,528