AC

哈基米  •  1个月前


include <bits/stdc++.h>

using namespace std;

int main() {

int n;
cin >> n;
for (int m = 1; m <= n; m++) {
	for (int l = 1; l <= m; l++) {
		if (m % 2 == 0) {
			cout << "o";
		} else {
			cout << "p";
		}
	}
	cout << endl;
}
return 0;

}


评论:

请先登录,才能进行评论