QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#202997#7407. Program OptimizationHuangHanShengTL 124ms5100kbC++202.3kb2023-10-06 14:31:272023-10-06 14:31:27

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3596kb

input:

3 5 1 0
0 1 2

output:

3

result:

ok 1 number(s): "3"

Test #2:

score: 0
Accepted
time: 124ms
memory: 5100kb

input:

200000 10000000 1 664250662
199997 199996 199994 199993 199992 199991 199990 199989 199988 199987 199986 199984 199983 199981 199979 199978 199977 199976 199975 199974 199973 199970 199969 199968 199966 199965 199964 199963 199962 199961 199960 199958 199957 199956 199955 199953 199952 199951 199948...

output:

106138

result:

ok 1 number(s): "106138"

Test #3:

score: -100
Time Limit Exceeded

input:

200000 10000000 2 841507843
199999 199998 199997 199996 199995 199994 199993 199992 199991 199990 199989 199988 199987 199986 199985 199984 199983 199982 199981 199980 199979 199978 199977 199976 199975 199974 199973 199972 199971 199970 199969 199968 199967 199966 199965 199964 199963 199962 199961...

output:


result: