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 20:04Ilya AniskovetsIlya AniskovetsScore: 5,905Success
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 20:045,431401,559,144157,484,638027,459,584
2Sep 21, 2021 20:045,439447,545,574157,723,874027,467,776
3Sep 21, 2021 20:045,465370,160,171158,477,907027,451,392
4Sep 21, 2021 20:045,897371,051,388129,926,00041,079,00033,841,152
5Sep 21, 2021 20:045,902375,759,011140,815,00030,329,00033,964,032
6Sep 21, 2021 20:045,903395,777,033134,135,00037,054,00033,652,736
7Sep 21, 2021 20:045,905378,875,625131,910,00039,327,00033,681,408
8Sep 21, 2021 20:045,906368,512,761133,947,00037,313,00033,472,512
9Sep 21, 2021 20:045,910394,813,471129,581,00041,800,00033,910,784
10Sep 21, 2021 20:045,911388,210,806142,448,00028,972,00033,501,184
11Sep 21, 2021 20:045,937397,638,417145,860,00026,320,00033,898,496
12Sep 21, 2021 20:045,957404,747,600139,576,00033,186,00033,980,416