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 04:06Yuriy LyfenkoYuriy LyfenkoScore: 6,284Success
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 04:065,768468,037,179167,270,775027,426,816
2Sep 22, 2021 04:065,831510,981,911169,084,508027,389,952
3Sep 22, 2021 04:065,831510,416,853169,104,186027,467,776
4Sep 22, 2021 04:066,276384,637,278149,353,00032,640,00033,673,216
5Sep 22, 2021 04:066,283374,440,981152,014,00030,201,00033,726,464
6Sep 22, 2021 04:066,283387,340,675157,227,00024,989,00033,890,304
7Sep 22, 2021 04:066,284389,319,547159,991,00022,250,00034,308,096
8Sep 22, 2021 04:066,301394,426,984152,615,00030,121,00034,250,752
9Sep 22, 2021 04:066,312374,280,370151,033,00032,007,00033,902,592
10Sep 22, 2021 04:066,312399,994,881153,391,00029,655,00033,898,496
11Sep 22, 2021 04:066,312396,435,671154,422,00028,634,00034,500,608
12Sep 22, 2021 04:066,378397,862,749156,033,00028,933,00033,718,272