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

C++ AC
Posted by D4nick 3 Jan 2019 06:56
the main difficulty here was to understand that you need to use <string>
#include <iostream>
#include <string>
using namespace std;
int main() {
    int n; string arr[4] = { "16", "06", "68", "88" };
    cin >> n;
    if (n <= 4)
        for (int i = 0; i < n; i++) {
            cout << arr[i] << " ";
        }
    else
        cout << "Glupenky Pierre";
}