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 25, 2021 10:38Ilya AniskovetsIlya AniskovetsScore: 5,550Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2021 10:385,238478,168,243151,902,897027,459,584
2Sep 25, 2021 10:385,269464,143,231152,812,564027,451,392
3Sep 25, 2021 10:385,358477,014,423155,395,109027,455,488
4Sep 25, 2021 10:385,534353,223,472131,867,00028,622,00033,644,544
5Sep 25, 2021 10:385,542362,853,968124,153,00036,572,00033,718,272
6Sep 25, 2021 10:385,549373,263,699125,056,00035,868,00033,636,352
7Sep 25, 2021 10:385,550370,812,971127,376,00033,571,00033,644,544
8Sep 25, 2021 10:385,550360,243,264126,607,00034,350,00033,636,352
9Sep 25, 2021 10:385,558373,069,660133,970,00027,212,00033,779,712
10Sep 25, 2021 10:385,564358,210,912132,576,00028,776,00033,988,608
11Sep 25, 2021 10:385,578375,734,129133,777,00027,999,00033,816,576
12Sep 25, 2021 10:385,588375,862,584135,927,00026,139,00033,751,040