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 16:46Yuriy LyfenkoYuriy LyfenkoScore: 5,677Success
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 16:465,426468,423,753157,339,961027,451,392
2Sep 22, 2021 16:465,481523,123,190158,955,559027,447,296
3Sep 22, 2021 16:465,574523,078,353161,648,986027,447,296
4Sep 22, 2021 16:465,650349,033,750132,084,00031,779,00033,591,296
5Sep 22, 2021 16:465,665371,763,634134,240,00030,053,00033,882,112
6Sep 22, 2021 16:465,667352,018,174136,787,00027,561,00033,869,824
7Sep 22, 2021 16:465,677371,222,461141,404,00023,215,00033,853,440
8Sep 22, 2021 16:465,680373,147,163138,974,00025,736,00034,107,392
9Sep 22, 2021 16:465,682376,420,648134,440,00030,324,00033,845,248
10Sep 22, 2021 16:465,683375,092,433134,472,00030,332,00033,468,416
11Sep 22, 2021 16:465,700359,319,325136,552,00028,747,00033,533,952
12Sep 22, 2021 16:465,731378,064,935134,971,00031,224,00035,184,640