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:23Yuriy LyfenkoYuriy LyfenkoScore: 6,164Success
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:235,809416,985,612168,453,041027,340,800
2Sep 22, 2021 14:235,818435,982,551168,710,091027,455,488
3Sep 22, 2021 14:235,828428,792,045169,019,056027,455,488
4Sep 22, 2021 14:236,124387,623,466156,199,00021,397,00033,382,400
5Sep 22, 2021 14:236,162396,234,532149,094,00029,614,00033,779,712
6Sep 22, 2021 14:236,163397,704,907145,448,00033,272,00033,951,744
7Sep 22, 2021 14:236,164389,412,094147,090,00031,652,00034,033,664
8Sep 22, 2021 14:236,167392,440,785142,082,00036,774,00033,701,888
9Sep 22, 2021 14:236,175411,286,512153,868,00025,194,00034,050,048
10Sep 22, 2021 14:236,178390,140,671151,193,00027,966,00034,037,760
11Sep 22, 2021 14:236,179386,454,817149,130,00030,057,00033,914,880
12Sep 22, 2021 14:236,188395,039,484146,042,00033,408,00033,996,800