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 13:41Yuriy LyfenkoYuriy LyfenkoScore: 6,011Success
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 13:415,714511,180,480165,701,524027,451,392
2Sep 22, 2021 13:415,723430,505,181165,970,223027,467,776
3Sep 22, 2021 13:415,771500,086,342167,362,083027,451,392
4Sep 22, 2021 13:415,999360,485,290140,750,00033,232,00033,906,688
5Sep 22, 2021 13:416,002380,862,732149,938,00024,115,00034,164,736
6Sep 22, 2021 13:416,010364,284,403144,905,00029,386,00034,009,088
7Sep 22, 2021 13:416,011380,918,915145,768,00028,542,00033,607,680
8Sep 22, 2021 13:416,017381,854,859143,229,00031,268,00033,718,272
9Sep 22, 2021 13:416,033367,816,863143,158,00031,813,00034,308,096
10Sep 22, 2021 13:416,046388,146,831147,318,00028,011,00033,755,136
11Sep 22, 2021 13:416,050383,118,736144,002,00031,437,00034,004,992
12Sep 22, 2021 13:416,052383,651,914149,394,00026,117,00034,168,832