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 14:26Yuriy LyfenkoYuriy LyfenkoScore: 6,091Success
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 14:265,857484,588,245169,860,949027,389,952
2Sep 22, 2021 14:265,892484,060,167170,871,440027,455,488
3Sep 22, 2021 14:265,894511,704,613170,940,199027,463,680
4Sep 22, 2021 14:266,077382,776,218146,865,00029,373,00033,996,800
5Sep 22, 2021 14:266,079391,368,927146,081,00030,223,00033,783,808
6Sep 22, 2021 14:266,089388,655,760145,651,00030,926,00034,242,560
7Sep 22, 2021 14:266,091386,928,956142,891,00033,738,00034,693,120
8Sep 22, 2021 14:266,091373,823,227148,911,00027,728,00034,160,640
9Sep 22, 2021 14:266,092376,509,152143,109,00033,556,00034,013,184
10Sep 22, 2021 14:266,092373,410,333146,387,00030,287,00034,013,184
11Sep 22, 2021 14:266,122382,099,738144,796,00032,728,00033,751,040
12Sep 22, 2021 14:266,123387,579,623150,558,00026,996,00033,697,792