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 03:47Yuriy LyfenkoYuriy LyfenkoScore: 6,731Success
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 03:476,258995,490,804181,467,702027,463,680
2Sep 21, 2021 03:476,277989,374,398182,028,958027,467,776
3Sep 21, 2021 03:476,3231,012,903,238183,371,020027,455,488
4Sep 21, 2021 03:476,691880,513,016159,919,00034,129,00034,017,280
5Sep 21, 2021 03:476,726886,030,939169,248,00025,800,00033,722,368
6Sep 21, 2021 03:476,726902,974,617161,402,00033,666,00033,714,176
7Sep 21, 2021 03:476,731903,050,023165,003,00030,183,00033,435,648
8Sep 21, 2021 03:476,745892,887,727172,600,00023,013,00033,734,656
9Sep 21, 2021 03:476,756909,740,208161,290,00034,632,00035,033,088
10Sep 21, 2021 03:476,757907,377,589164,814,00031,153,00035,241,984
11Sep 21, 2021 03:476,767906,164,456169,381,00026,853,00033,730,560
12Sep 21, 2021 03:476,793917,361,910158,359,00038,624,00035,295,232