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 04:44Yuriy LyfenkoYuriy LyfenkoScore: 5,579Success
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 04:445,244487,158,329152,069,025027,443,200
2Oct 11, 2021 04:445,262436,278,462152,584,527027,435,008
3Oct 11, 2021 04:445,295461,664,391153,548,000027,439,104
4Oct 11, 2021 04:445,539363,110,359128,113,00032,521,00033,636,352
5Oct 11, 2021 04:445,555367,680,115132,736,00028,371,00033,492,992
6Oct 11, 2021 04:445,574361,967,184128,142,00033,514,00033,574,912
7Oct 11, 2021 04:445,579371,966,484134,309,00027,472,00034,148,352
8Oct 11, 2021 04:445,582364,170,003135,077,00026,809,00033,755,136
9Oct 11, 2021 04:445,586350,348,440137,647,00024,353,00033,742,848
10Oct 11, 2021 04:445,590375,378,774126,086,00036,024,00034,095,104
11Oct 11, 2021 04:445,602359,940,583129,760,00032,687,00034,320,384
12Oct 11, 2021 04:445,631376,711,049133,703,00029,598,00034,848,768