题解 | 小红的顺子构造
小红的顺子构造
https://www.nowcoder.com/practice/f508e5e32155460e89a2f7f2c45f0f61
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < 5; i++) {
printf("%d ", n++);
}
return 0;
}
小红的顺子构造
https://www.nowcoder.com/practice/f508e5e32155460e89a2f7f2c45f0f61
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 0; i < 5; i++) {
printf("%d ", n++);
}
return 0;
}
相关推荐