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 25, 2021 22:47Ilya AniskovetsIlya AniskovetsScore: 5,562Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2021 22:475,225483,502,943151,536,678027,447,296
2Sep 25, 2021 22:475,259462,648,778152,516,813027,463,680
3Sep 25, 2021 22:475,335488,316,075154,705,599027,455,488
4Sep 25, 2021 22:475,549362,762,295130,558,00030,362,00033,644,544
5Sep 25, 2021 22:475,556356,743,476135,137,00025,988,00033,849,344
6Sep 25, 2021 22:475,560380,085,338127,048,00034,205,00033,906,688
7Sep 25, 2021 22:475,562351,408,613131,057,00030,244,00033,718,272
8Sep 25, 2021 22:475,568375,828,446132,663,00028,795,00033,751,040
9Sep 25, 2021 22:475,575378,978,019131,180,00030,507,00034,013,184
10Sep 25, 2021 22:475,582377,519,673128,907,00032,976,00034,238,464
11Sep 25, 2021 22:475,585347,213,305129,967,00031,992,00033,677,312
12Sep 25, 2021 22:475,587368,045,564133,125,00028,895,00035,155,968