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:09Yuriy LyfenkoYuriy LyfenkoScore: 5,881Success
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:095,672486,657,796164,495,538027,451,392
2Sep 22, 2021 14:095,713461,446,548165,667,331027,467,776
3Sep 22, 2021 14:095,723509,889,692165,958,526027,467,776
4Sep 22, 2021 14:095,868369,080,437143,185,00026,976,00033,767,424
5Sep 22, 2021 14:095,873353,602,759139,261,00031,058,00034,009,088
6Sep 22, 2021 14:095,878373,382,094144,483,00025,986,00033,906,688
7Sep 22, 2021 14:095,881363,867,764147,247,00023,305,00033,935,360
8Sep 22, 2021 14:095,883376,227,138140,980,00029,626,00033,452,032
9Sep 22, 2021 14:095,886376,825,193143,786,00026,895,00033,734,656
10Sep 22, 2021 14:095,889380,425,500138,826,00031,959,00033,619,968
11Sep 22, 2021 14:095,890376,855,981145,655,00025,149,00033,898,496
12Sep 22, 2021 14:095,906373,933,534144,283,00026,988,00034,349,056