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 10, 2021 03:48Yuriy LyfenkoYuriy LyfenkoScore: 5,967Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 03:485,679424,791,530164,695,526027,459,584
2Oct 10, 2021 03:485,731437,875,209166,205,329027,455,488
3Oct 10, 2021 03:485,759434,174,437167,016,871027,451,392
4Oct 10, 2021 03:485,936375,065,618123,826,00048,322,00034,017,280
5Oct 10, 2021 03:485,941398,225,020116,943,00055,347,00033,644,544
6Oct 10, 2021 03:485,961391,543,266137,665,00035,216,00033,521,664
7Oct 10, 2021 03:485,967374,440,363136,890,00036,159,00034,000,896
8Oct 10, 2021 03:485,971393,178,407133,612,00039,549,00034,099,200
9Oct 10, 2021 03:485,993394,958,690125,578,00048,229,00034,029,568
10Oct 10, 2021 03:486,012407,139,264130,755,00043,585,00033,910,784
11Oct 10, 2021 03:486,017381,336,562150,313,00024,176,00033,931,264
12Oct 10, 2021 03:486,142419,004,241138,078,00040,053,00036,519,936