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:04Yuriy LyfenkoYuriy LyfenkoScore: 6,217Success
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:045,742487,573,679166,508,233027,455,488
2Sep 22, 2021 13:045,760487,631,122167,042,927027,340,800
3Sep 22, 2021 13:045,837534,403,595169,277,277027,455,488
4Sep 22, 2021 13:046,209389,066,934144,245,00035,819,00033,820,672
5Sep 22, 2021 13:046,214372,002,964150,680,00029,525,00033,751,040
6Sep 22, 2021 13:046,215388,562,235149,191,00031,039,00034,164,736
7Sep 22, 2021 13:046,217369,401,677150,066,00030,214,00033,980,416
8Sep 22, 2021 13:046,217389,054,122145,028,00035,277,00033,914,880
9Sep 22, 2021 13:046,219370,810,942150,961,00029,381,00033,964,032
10Sep 22, 2021 13:046,222388,224,130158,147,00022,289,00033,910,784
11Sep 22, 2021 13:046,223390,826,888145,357,00035,119,00034,004,992
12Sep 22, 2021 13:046,274404,631,546150,600,00031,333,00033,894,400