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:39Yuriy LyfenkoYuriy LyfenkoScore: 6,207Success
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:396,096511,035,015176,778,080027,455,488
2Sep 22, 2021 03:396,116493,424,893177,365,672027,455,488
3Sep 22, 2021 03:396,193390,333,309145,444,00034,164,00033,943,552
4Sep 22, 2021 03:396,199733,581,075179,767,817027,451,392
5Sep 22, 2021 03:396,205391,097,241148,782,00031,163,00034,156,544
6Sep 22, 2021 03:396,207369,105,816149,002,00031,000,00033,898,496
7Sep 22, 2021 03:396,207376,716,509152,232,00027,772,00033,636,352
8Sep 22, 2021 03:396,211387,425,963147,930,00032,202,00034,160,640
9Sep 22, 2021 03:396,212389,040,433154,106,00026,031,00033,587,200
10Sep 22, 2021 03:396,219383,373,126149,962,00030,397,00034,095,104
11Sep 22, 2021 03:396,231387,888,812144,556,00036,139,00033,964,032
12Sep 22, 2021 03:396,248380,212,000156,829,00024,372,00034,598,912