|
|
back to boardWhy this solution get WA1? #include <bits/stdc++.h> string c[4] = {"88", "68", "06", "16"}; int main() { cin >> n; if (n > 4) { cout << "Glupenky Pierre" << endl; return 0; } for (int i = n - 1; i >= 0; i--) cout << c[i] << " "; } "68 88" is good, isn't? Re: Why this solution get WA1? There are many more combinations. You also forgot 9 |
|
|