AC 哈基米已睡着 · 发布于 2025-08-13 · 浏览 332 回复 0 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; }