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 21, 2021 05:39Yuriy LyfenkoYuriy LyfenkoScore: 6,152Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 05:396,122382,417,157148,118,00029,420,00033,701,888
2Sep 21, 2021 05:396,128375,853,149149,971,00027,734,00033,869,824
3Sep 21, 2021 05:396,129374,248,660145,783,00031,952,00033,996,800
4Sep 21, 2021 05:396,142396,420,302148,598,00029,516,00033,906,688
5Sep 21, 2021 05:396,143373,409,745142,906,00035,237,00034,004,992
6Sep 21, 2021 05:396,143394,407,364147,952,00030,194,00034,160,640
7Sep 21, 2021 05:396,152369,168,204146,327,00032,071,00033,816,576
8Sep 21, 2021 05:396,163390,642,119145,154,00033,573,00034,275,328
9Sep 21, 2021 05:396,200402,650,497158,129,00021,661,00033,718,272
10Sep 21, 2021 05:396,532524,249,976189,429,366027,447,296
11Sep 21, 2021 05:396,579712,436,844190,797,408027,357,184
12Sep 21, 2021 05:396,630503,523,103192,275,619027,447,296