ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2031. Overturned Numbers

Why this solution get WA1?
Posted by Buzmakov Dmitriy 13 Aug 2019 22:29
#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?
Posted by Krasheninnikova 17 Aug 2019 00:31
There are many more combinations. You also forgot 9