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 16:31Yuriy LyfenkoYuriy LyfenkoScore: 5,574Success
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 16:315,488542,234,672159,158,907027,451,392
2Sep 22, 2021 16:315,535479,095,721160,507,212027,447,296
3Sep 22, 2021 16:315,538519,781,813160,609,914027,443,200
4Sep 22, 2021 16:315,555378,503,292130,279,00030,829,00033,939,456
5Sep 22, 2021 16:315,564354,125,165131,923,00029,429,00034,021,376
6Sep 22, 2021 16:315,571362,796,276129,045,00032,507,00034,263,040
7Sep 22, 2021 16:315,574368,214,858132,990,00028,644,00034,058,240
8Sep 22, 2021 16:315,577370,555,749129,989,00031,753,00033,718,272
9Sep 22, 2021 16:315,589373,600,361131,873,00030,200,00034,172,928
10Sep 22, 2021 16:315,590352,234,097134,417,00027,704,00033,828,864
11Sep 22, 2021 16:315,591376,139,699135,295,00026,852,00033,988,608
12Sep 22, 2021 16:315,593374,500,204130,538,00031,645,00034,013,184