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 13:51Yuriy LyfenkoYuriy LyfenkoScore: 6,089Success
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 13:515,775512,449,526167,466,401027,447,296
2Sep 22, 2021 13:515,823495,247,004168,880,689027,463,680
3Sep 22, 2021 13:515,828438,354,603169,021,727027,447,296
4Sep 22, 2021 13:516,061362,112,253147,151,00028,612,00033,980,416
5Sep 22, 2021 13:516,084385,346,308152,433,00024,013,00033,714,176
6Sep 22, 2021 13:516,086372,925,573144,394,00032,087,00034,357,248
7Sep 22, 2021 13:516,089384,603,612147,322,00029,262,00033,718,272
8Sep 22, 2021 13:516,092389,997,738144,087,00032,567,00034,762,752
9Sep 22, 2021 13:516,095377,235,283145,437,00031,309,00033,751,040
10Sep 22, 2021 13:516,096374,440,958144,636,00032,141,00033,992,704
11Sep 22, 2021 13:516,123391,523,652148,819,00028,737,00034,369,536
12Sep 22, 2021 13:516,133391,150,165150,655,00027,201,00034,103,296