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 28, 2021 04:18Yuriy LyfenkoYuriy LyfenkoScore: 6,145Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 28, 2021 04:185,931542,201,240172,012,394027,451,392
2Sep 28, 2021 04:185,942457,803,643172,331,848027,451,392
3Sep 28, 2021 04:185,956509,640,334172,727,776027,459,584
4Sep 28, 2021 04:186,139387,638,987147,674,00030,343,00034,017,280
5Sep 28, 2021 04:186,141378,159,104144,455,00033,640,00033,902,592
6Sep 28, 2021 04:186,142367,192,940151,341,00026,767,00033,406,976
7Sep 28, 2021 04:186,145387,701,438151,427,00026,783,00033,849,344
8Sep 28, 2021 04:186,148391,070,034148,914,00029,377,00033,849,344
9Sep 28, 2021 04:186,162372,270,673150,818,00027,891,00033,980,416
10Sep 28, 2021 04:186,163370,133,455152,742,00025,976,00034,160,640
11Sep 28, 2021 04:186,164395,744,363151,015,00027,737,00033,959,936
12Sep 28, 2021 04:186,186382,913,330151,564,00027,838,00034,275,328