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 16:13Yuriy LyfenkoYuriy LyfenkoScore: 5,723Success
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 16:135,532512,261,197160,413,771027,463,680
2Sep 22, 2021 16:135,596470,657,115162,284,494027,467,776
3Sep 22, 2021 16:135,624509,483,163163,103,865027,451,392
4Sep 22, 2021 16:135,705356,082,715131,383,00034,062,00033,632,256
5Sep 22, 2021 16:135,711375,124,816139,739,00025,877,00033,996,800
6Sep 22, 2021 16:135,722379,091,068130,026,00035,902,00033,910,784
7Sep 22, 2021 16:135,723352,534,718135,794,00030,176,00034,684,928
8Sep 22, 2021 16:135,727374,301,078140,862,00025,229,00033,964,032
9Sep 22, 2021 16:135,727369,635,009137,386,00028,707,00033,468,416
10Sep 22, 2021 16:135,738376,819,967133,531,00032,884,00033,988,608
11Sep 22, 2021 16:135,743351,866,514133,634,00032,909,00034,078,720
12Sep 22, 2021 16:135,745377,359,630136,123,00030,475,00033,980,416