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 listAug 24, 2024 15:50Andrey LikhachevAndrey LikhachevScore: 7,030Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2024 15:506,669410,538,677193,395,914027,516,928
2Aug 24, 2024 15:506,678399,397,055193,666,610027,389,952
3Aug 24, 2024 15:506,692403,787,189194,080,245027,525,120
4Aug 24, 2024 15:506,995414,421,350178,153,00024,714,00033,480,704
5Aug 24, 2024 15:507,000403,980,974168,847,00034,159,00033,804,288
6Aug 24, 2024 15:507,008406,047,131173,188,00030,032,00033,611,776
7Aug 24, 2024 15:507,030393,791,851177,374,00026,504,00033,902,592
8Aug 24, 2024 15:507,034396,687,670172,000,00032,000,00033,959,936
9Aug 24, 2024 15:507,047418,425,063179,466,00024,897,00033,730,560
10Aug 24, 2024 15:507,054415,599,945177,712,00026,863,00033,726,464
11Aug 24, 2024 15:507,056415,119,170175,238,00029,375,00033,726,464
12Aug 24, 2024 15:507,063422,875,021176,290,00028,532,00034,963,456