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 18:16Yuriy LyfenkoYuriy LyfenkoScore: 5,589Success
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 18:165,542367,629,542126,622,00034,090,00033,378,304
2Sep 22, 2021 18:165,561369,592,488128,824,00032,451,00033,980,416
3Sep 22, 2021 18:165,562373,062,486139,935,00021,364,00033,636,352
4Sep 22, 2021 18:165,565369,583,217138,017,00023,356,00033,492,992
5Sep 22, 2021 18:165,577359,252,484129,189,00032,543,00033,890,304
6Sep 22, 2021 18:165,580362,136,201132,494,00029,330,00034,689,024
7Sep 22, 2021 18:165,589350,570,432136,821,00025,259,00034,013,184
8Sep 22, 2021 18:165,594371,195,845132,456,00029,776,00034,156,544
9Sep 22, 2021 18:165,597368,128,599134,390,00027,911,00033,976,320
10Sep 22, 2021 18:165,697472,888,072165,201,103027,377,664
11Sep 22, 2021 18:165,709433,471,492165,565,331027,455,488
12Sep 22, 2021 18:165,720543,484,689165,888,264027,451,392