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 16:25Yuriy LyfenkoYuriy LyfenkoScore: 5,771Success
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 16:255,471442,449,190158,671,571027,443,200
2Sep 22, 2021 16:255,496438,018,528159,385,248027,443,200
3Sep 22, 2021 16:255,527510,870,892160,277,127027,447,296
4Sep 22, 2021 16:255,755373,185,972139,238,00027,643,00033,742,848
5Sep 22, 2021 16:255,761346,225,929141,285,00025,782,00033,349,632
6Sep 22, 2021 16:255,765373,532,812133,160,00034,019,00033,492,992
7Sep 22, 2021 16:255,771352,254,965137,117,00030,246,00033,484,800
8Sep 22, 2021 16:255,781392,002,147135,710,00031,931,00034,045,952
9Sep 22, 2021 16:255,783386,704,839139,064,00028,631,00033,783,808
10Sep 22, 2021 16:255,785386,677,692132,865,00034,913,00034,320,384
11Sep 22, 2021 16:255,803382,520,301140,593,00027,708,00034,025,472
12Sep 22, 2021 16:255,820372,292,817144,378,00024,416,00034,611,200