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 14:08Yuriy LyfenkoYuriy LyfenkoScore: 5,880Success
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 14:085,670468,885,421164,421,523027,455,488
2Sep 22, 2021 14:085,690526,171,123164,997,332027,451,392
3Sep 22, 2021 14:085,722452,072,192165,944,561027,459,584
4Sep 22, 2021 14:085,846361,276,696142,822,00026,714,00033,484,800
5Sep 22, 2021 14:085,865376,971,440141,389,00028,687,00033,447,936
6Sep 22, 2021 14:085,867363,186,267143,327,00026,809,00033,800,192
7Sep 22, 2021 14:085,880370,600,052139,426,00031,095,00033,751,040
8Sep 22, 2021 14:085,883374,218,700142,853,00027,748,00033,738,752
9Sep 22, 2021 14:085,886362,580,906148,282,00022,402,00034,156,544
10Sep 22, 2021 14:085,888364,083,289146,649,00024,092,00034,242,560
11Sep 22, 2021 14:085,890376,758,782142,182,00028,641,00033,423,360
12Sep 22, 2021 14:085,928384,061,865139,933,00031,984,00033,751,040