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 03:29Yuriy LyfenkoYuriy LyfenkoScore: 6,277Success
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 03:295,727470,980,521166,094,171027,467,776
2Sep 22, 2021 03:295,756467,463,250166,929,208027,451,392
3Sep 22, 2021 03:295,758451,327,818166,986,781027,451,392
4Sep 22, 2021 03:296,240379,901,367151,631,00029,315,00033,488,896
5Sep 22, 2021 03:296,248381,635,014160,824,00020,371,00033,476,608
6Sep 22, 2021 03:296,274367,883,385143,638,00038,303,00034,164,736
7Sep 22, 2021 03:296,277391,103,173152,546,00029,492,00033,931,264
8Sep 22, 2021 03:296,285363,430,990153,752,00028,510,00033,857,536
9Sep 22, 2021 03:296,286370,081,237156,541,00025,746,00033,980,416
10Sep 22, 2021 03:296,288382,379,801149,653,00032,705,00033,783,808
11Sep 22, 2021 03:296,290388,481,571158,169,00024,252,00034,160,640
12Sep 22, 2021 03:296,324389,427,208157,347,00026,050,00033,730,560