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 05:55Yuriy LyfenkoYuriy LyfenkoScore: 5,470Success
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 05:555,085426,173,796147,457,663027,435,008
2Oct 11, 2021 05:555,125472,106,112148,614,850027,443,200
3Oct 11, 2021 05:555,156439,221,037149,512,471027,443,200
4Oct 11, 2021 05:555,443368,487,577128,495,00029,341,00033,751,040
5Oct 11, 2021 05:555,447347,622,663138,350,00019,608,00033,751,040
6Oct 11, 2021 05:555,470352,127,388137,047,00021,582,00033,849,344
7Oct 11, 2021 05:555,470365,900,081129,332,00029,301,00034,213,888
8Oct 11, 2021 05:555,471370,260,431128,352,00030,319,00033,792,000
9Oct 11, 2021 05:555,476350,846,164126,254,00032,550,00033,828,864
10Oct 11, 2021 05:555,488369,177,180134,032,00025,131,00033,533,952
11Oct 11, 2021 05:555,498379,089,435130,634,00028,801,00034,283,520
12Oct 11, 2021 05:555,499378,323,808125,226,00034,241,00034,398,208