求助!不开OA全WA,开OA又全RE
查看原帖
求助!不开OA全WA,开OA又全RE
782371
hhschhx楼主2022/9/1 12:52
#include <bits/stdc++.h>
using namespace std;
int main(){
	int a[1000]={1},b,c;
	for(b=0;a[b-1]!=0;b++){
		cin>>a[b];
		if(a[b]==0){
			c=b;
		}
	}
	for(b=c-1;b>=0;b--){
		cout<<a[b]<<" ";
	}
}
2022/9/1 12:52
加载中...