还待补。 洛谷 不要 int a[N] = {0}; 这种方法初始化,因为它编译时会变成 int a[N] = {0,0,0,...,0},然后自然而然不 CE\text{CE}CE 才怪。 UVA\text{UVA}UVA 它似乎不会过滤行末空格、换行,所以要记得特判。