版本比较
+1 −1增加 1 行删除 1 行
9 行未改动101112131414151617185 行未改动9 行未改动int n, cnt; int main(){ ios::sync_with_stdio(0), cin.tie(0); cin >> n; for (int i = 1; i <= n; i ++ ){ int x; cin >> x; if (!x) cnt ++;5 行未改动