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 18:18Yuriy LyfenkoYuriy LyfenkoScore: 5,720Success
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 18:185,512501,929,530159,839,372027,447,296
2Sep 22, 2021 18:185,530486,359,937160,371,569027,467,776
3Sep 22, 2021 18:185,569506,472,710161,513,428027,447,296
4Sep 22, 2021 18:185,690382,083,055140,253,00024,750,00034,197,504
5Sep 22, 2021 18:185,691367,297,931142,059,00022,980,00033,890,304
6Sep 22, 2021 18:185,702358,043,655140,544,00024,802,00033,878,016
7Sep 22, 2021 18:185,720374,983,261139,800,00026,082,00034,217,984
8Sep 22, 2021 18:185,722382,887,362139,129,00026,795,00033,550,336
9Sep 22, 2021 18:185,733352,923,054131,456,00034,797,00034,017,280
10Sep 22, 2021 18:185,735375,598,085140,332,00025,987,00033,853,440
11Sep 22, 2021 18:185,738379,953,763141,452,00024,962,00034,320,384
12Sep 22, 2021 18:185,759361,957,094142,544,00024,466,00034,041,856