re,求debug
查看原帖
re,求debug
1189340
aishiteru_mitsu_ha楼主2023/12/15 17:48
#include<bits/stdc++.h>
using namespace std;
int main(){
    long long a[101],cnt=0;
    while(1){
        cnt++;
        cin>>a[cnt];
        if(a[cnt]==0){
            break;
        }
    }
    for(int i=cnt-1;i>=0;i++){
        cout<<a[i]<<" ";
    }
    return 0;
}
2023/12/15 17:48
加载中...