如果看了这段代码是 "WC", 你来揍我
2026-09-13 17:51:11
发布于:浙江
2阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int s[40], d, f;
int main(){
cin >> d;
for(int i = 0; i <= d; i++){
cin >> s[i];
}
for(int i = 0; i <= d; i++){
if(s[i] % 2 == 1){
cout << s[i] << " ";
}
}
cout << endl;
for(int i = 0; i <= d; i++){
if(s[i] % 2 == 0 && s[i] > 0){
cout << s[i] << " ";
}
}
return 0;
}
这里空空如也







有帮助,赞一个