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 04:02Yuriy LyfenkoYuriy LyfenkoScore: 6,205Success
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 04:025,689487,596,234164,971,779027,451,392
2Sep 22, 2021 04:025,694470,778,047165,111,502027,451,392
3Sep 22, 2021 04:025,723462,198,025165,965,807027,451,392
4Sep 22, 2021 04:026,192377,249,305148,647,00030,926,00034,013,184
5Sep 22, 2021 04:026,196380,770,845148,740,00030,946,00033,931,264
6Sep 22, 2021 04:026,200364,100,460151,197,00028,604,00033,849,344
7Sep 22, 2021 04:026,205384,559,728145,535,00034,417,00033,914,880
8Sep 22, 2021 04:026,208390,928,984146,410,00033,634,00033,718,272
9Sep 22, 2021 04:026,214391,488,027156,110,00024,097,00033,816,576
10Sep 22, 2021 04:026,231389,079,783158,249,00022,454,00033,943,552
11Sep 22, 2021 04:026,237403,380,436155,641,00025,239,00034,242,560
12Sep 22, 2021 04:026,286397,201,288150,714,00031,568,00034,336,768