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 03:46Yuriy LyfenkoYuriy LyfenkoScore: 6,166Success
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 03:465,741477,245,952166,476,865027,451,392
2Sep 22, 2021 03:465,749479,811,918166,731,047027,451,392
3Sep 22, 2021 03:465,764445,035,515167,153,984027,451,392
4Sep 22, 2021 03:466,136386,692,102160,486,00017,467,00033,685,504
5Sep 22, 2021 03:466,155367,310,957154,352,00024,150,00033,943,552
6Sep 22, 2021 03:466,158387,542,425150,003,00028,572,00033,914,880
7Sep 22, 2021 03:466,166364,737,268154,470,00024,334,00033,705,984
8Sep 22, 2021 03:466,167393,792,781156,491,00022,355,00033,902,592
9Sep 22, 2021 03:466,179394,877,443145,535,00033,661,00033,718,272
10Sep 22, 2021 03:466,180376,792,155144,932,00034,274,00033,718,272
11Sep 22, 2021 03:466,193390,735,922158,206,00021,379,00034,168,832
12Sep 22, 2021 03:466,213401,033,207146,337,00033,846,00034,951,168