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 listOct 11, 2021 05:53Yuriy LyfenkoYuriy LyfenkoScore: 5,397Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 05:535,125448,768,258148,639,412027,435,008
2Oct 11, 2021 05:535,183499,041,008150,316,434027,439,104
3Oct 11, 2021 05:535,189475,495,382150,474,468027,439,104
4Oct 11, 2021 05:535,390363,608,685128,084,00028,239,00034,152,448
5Oct 11, 2021 05:535,393359,540,157129,458,00026,927,00034,017,280
6Oct 11, 2021 05:535,393352,669,408129,638,00026,750,00034,021,376
7Oct 11, 2021 05:535,397362,833,132123,456,00033,051,00034,058,240
8Oct 11, 2021 05:535,407355,765,847125,057,00031,760,00033,828,864
9Oct 11, 2021 05:535,410369,211,090122,990,00033,894,00034,029,568
10Oct 11, 2021 05:535,433368,680,479116,088,00041,460,00033,488,896
11Oct 11, 2021 05:535,433355,139,935131,478,00026,086,00034,279,424
12Oct 11, 2021 05:535,456369,637,902133,974,00024,263,00034,017,280