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 listOct 11, 2021 03:14Yuriy LyfenkoYuriy LyfenkoScore: 5,769Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 03:145,538429,509,919160,599,890027,463,680
2Oct 11, 2021 03:145,553436,647,042161,023,771027,455,488
3Oct 11, 2021 03:145,586459,550,192161,983,176027,467,776
4Oct 11, 2021 03:145,758379,330,325135,994,00030,998,00034,172,928
5Oct 11, 2021 03:145,761371,047,993135,064,00032,015,00034,168,832
6Oct 11, 2021 03:145,765370,726,818137,613,00029,561,00033,722,368
7Oct 11, 2021 03:145,769367,096,997139,587,00027,712,00034,013,184
8Oct 11, 2021 03:145,784383,222,795129,406,00038,342,00033,980,416
9Oct 11, 2021 03:145,787382,773,912140,714,00027,100,00034,357,248
10Oct 11, 2021 03:145,790386,577,231143,621,00024,288,00033,980,416
11Oct 11, 2021 03:145,800382,861,387139,305,00028,892,00034,361,344
12Oct 11, 2021 03:145,815385,425,309137,149,00031,493,00033,759,232