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 06:12Yuriy LyfenkoYuriy LyfenkoScore: 5,362Success
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 06:125,073462,935,765147,121,151027,439,104
2Oct 11, 2021 06:125,097449,503,418147,812,559027,435,008
3Oct 11, 2021 06:125,138460,482,987149,000,024027,439,104
4Oct 11, 2021 06:125,343357,625,896123,358,00031,579,00034,021,376
5Oct 11, 2021 06:125,346351,069,716122,442,00032,585,00033,746,944
6Oct 11, 2021 06:125,360363,494,031130,223,00025,204,00033,918,976
7Oct 11, 2021 06:125,362363,675,161129,404,00026,089,00033,746,944
8Oct 11, 2021 06:125,363356,295,542128,932,00026,605,00033,464,320
9Oct 11, 2021 06:125,368359,184,968122,944,00032,719,00033,767,424
10Oct 11, 2021 06:125,373374,367,077127,313,00028,518,00034,271,232
11Oct 11, 2021 06:125,383348,142,915131,693,00024,426,00034,385,920
12Oct 11, 2021 06:125,393369,768,885130,160,00026,242,00033,890,304