数据很恶心,但是考点挺友好~ 把测试数据黏贴到记事本中,知测试数据的行列数 然后根据规则判断2020是否出现,并累计其次数即可。 判断可能需要注意超出下标,可以索性把数组定大些。
#include<stdio.h>
const int N 310;
ch…
P1873 [COCI 2011/2012 #5] EKO / 砍树 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) n, m map(int,input().split())data list(map(int,input().split()))
h 0
def check(mid):h 0for i in data:if i>mid:h (i-mid)if h < m:return Trueelse:return Falsel 0
r …