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 29, 2021 16:29Yuriy LyfenkoYuriy LyfenkoScore: 5,554Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 16:295,483474,875,867159,007,742027,471,872
2Sep 29, 2021 16:295,514500,783,749159,898,562027,459,584
3Sep 29, 2021 16:295,531375,050,815129,323,00031,077,00033,980,416
4Sep 29, 2021 16:295,534490,465,822160,499,020027,459,584
5Sep 29, 2021 16:295,542351,011,906129,574,00031,138,00033,640,448
6Sep 29, 2021 16:295,545370,636,727130,467,00030,341,00033,456,128
7Sep 29, 2021 16:295,554367,145,279135,088,00025,978,00033,996,800
8Sep 29, 2021 16:295,556356,381,460126,193,00034,945,00033,488,896
9Sep 29, 2021 16:295,577356,510,692129,784,00031,947,00033,980,416
10Sep 29, 2021 16:295,582379,279,015132,162,00029,710,00034,504,704
11Sep 29, 2021 16:295,591370,505,153127,530,00034,601,00033,964,032
12Sep 29, 2021 16:295,626376,050,544135,097,00028,058,00033,898,496