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:44Yuriy LyfenkoYuriy LyfenkoScore: 6,912Success
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:446,596992,417,377191,294,229027,439,104
2Sep 21, 2021 04:446,6441,023,368,549192,666,400027,369,472
3Sep 21, 2021 04:446,7041,059,792,362194,429,394027,443,200
4Sep 21, 2021 04:446,881909,994,782165,314,00034,236,00033,660,928
5Sep 21, 2021 04:446,893898,142,217185,628,00014,279,00033,595,392
6Sep 21, 2021 04:446,900903,640,984177,174,00022,928,00033,751,040
7Sep 21, 2021 04:446,912889,131,768174,627,00025,832,00034,152,448
8Sep 21, 2021 04:446,927903,358,274175,123,00025,753,00034,058,240
9Sep 21, 2021 04:446,930899,790,632169,818,00031,150,00034,185,216
10Sep 21, 2021 04:446,931901,537,383173,597,00027,410,00034,000,896
11Sep 21, 2021 04:446,932908,602,644175,377,00025,639,00033,849,344
12Sep 21, 2021 04:446,936915,967,097172,567,00028,591,00034,766,848