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 29, 2021 16:20Yuriy LyfenkoYuriy LyfenkoScore: 5,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 29, 2021 16:205,548490,361,266160,898,267027,455,488
2Sep 29, 2021 16:205,560436,914,129161,226,469027,451,392
3Sep 29, 2021 16:205,601494,689,762162,439,289027,451,392
4Sep 29, 2021 16:205,715364,711,668135,604,00030,134,00033,718,272
5Sep 29, 2021 16:205,719357,958,267136,340,00029,506,00033,849,344
6Sep 29, 2021 16:205,725358,487,723128,810,00037,211,00033,488,896
7Sep 29, 2021 16:205,731355,023,574134,976,00031,225,00033,669,120
8Sep 29, 2021 16:205,738370,572,106135,964,00030,439,00033,718,272
9Sep 29, 2021 16:205,739377,836,837132,950,00033,483,00033,456,128
10Sep 29, 2021 16:205,739371,010,303138,027,00028,417,00033,988,608
11Sep 29, 2021 16:205,743371,780,559139,812,00026,728,00033,714,176
12Sep 29, 2021 16:205,781374,883,896135,515,00032,122,00034,091,008