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 4, 2024 12:21NoSIMD_C#NoSIMD_C#Score: 20,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 4, 2024 12:2120,519824,934,748534,354,00060,699,00033,968,128
2Dec 4, 2024 12:2120,617831,585,284541,431,00056,462,00034,463,744
3Dec 4, 2024 12:2120,654840,630,252536,533,00062,433,00034,185,216
4Dec 4, 2024 12:2120,663832,294,741545,456,00053,763,00034,332,672
5Dec 4, 2024 12:2120,664854,382,381546,147,00053,111,00038,060,032
6Dec 4, 2024 12:2120,686819,852,214542,085,00057,795,00034,725,888
7Dec 4, 2024 12:2120,693835,941,739535,721,00064,365,00034,164,736
8Dec 4, 2024 12:2120,770813,754,814542,603,00059,736,00033,959,936
9Dec 4, 2024 12:2120,792826,567,427540,876,00062,100,00033,746,944