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 listDec 13, 2024 08:00NoSIMD_C#NoSIMD_C#Score: 19,969Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 08:0019,777599,814,034534,633,00038,900,0002,535,424
2Dec 13, 2024 08:0019,826602,432,290548,063,00026,904,0002,449,408
3Dec 13, 2024 08:0019,862602,500,373543,112,00032,885,0002,367,488
4Dec 13, 2024 08:0019,898606,061,262539,179,00037,872,0002,367,488
5Dec 13, 2024 08:0019,969610,857,915541,159,00037,941,0002,494,464
6Dec 13, 2024 08:0019,972611,670,239539,245,00039,944,0002,301,952
7Dec 13, 2024 08:0020,011608,230,027532,463,00047,861,0002,408,448
8Dec 13, 2024 08:0020,184619,177,380554,419,00030,911,0002,383,872
9Dec 13, 2024 08:0020,199612,314,577554,787,00030,988,0002,379,776