求助C题
为什么C题只是输出顺序不一样,就不能AC
#include <iostream>
using namespace std;
int main(){
int n; cin >> n;
int x = 1, y = n;
for(int i = 1; i <= n / 2; i++) {
// cout << x++ << ' ' << y-- << ' '; // 可以AC
cout << y-- << ' ' << x++ << ' '; // 不能AC
}
if(n % 2 != 0) cout << y;
return 0;
}
