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 05:47Yuriy LyfenkoYuriy LyfenkoScore: 6,537Success
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 05:476,082495,417,388176,377,172027,451,392
2Sep 21, 2021 05:476,108487,728,196177,130,787027,455,488
3Sep 21, 2021 05:476,116538,521,106177,364,452027,451,392
4Sep 21, 2021 05:476,520375,541,804159,751,00029,321,00033,980,416
5Sep 21, 2021 05:476,527394,991,744161,651,00027,623,00034,160,640
6Sep 21, 2021 05:476,533404,429,774159,223,00030,232,00033,947,648
7Sep 21, 2021 05:476,537395,799,704161,899,00027,666,00033,894,400
8Sep 21, 2021 05:476,539396,716,916161,082,00028,546,00034,271,232
9Sep 21, 2021 05:476,544381,852,976161,203,00028,567,00033,972,224
10Sep 21, 2021 05:476,548408,244,514159,598,00030,303,00034,164,736
11Sep 21, 2021 05:476,553404,502,834159,020,00031,004,00034,430,976
12Sep 21, 2021 05:476,587402,027,005164,040,00026,994,00034,168,832