114252024-09-15 13:25:03CsongiKiváló Számokcpp17Wrong answer 67/10050ms1384 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin >> n;

    if (n % 3 == 0)
    {
        for (int i = 0; i < n; i++)
        {
            cout << 5;
        }
    }
    else if (n % 3 == 1)
    {
        for (int i = 0; i < n - 2; i++)
        {
            cout << 1;
        }
        cout << 55 << endl;
    }
    else
    {
        for (int i = 0; i < n - 1; i++)
        {
            cout << 1;
        }
        cout << 5 << endl;
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted2ms232 KiB
subtask20/33
2Wrong answer2ms360 KiB
3Accepted3ms400 KiB
4Accepted3ms400 KiB
5Accepted2ms456 KiB
6Accepted2ms360 KiB
7Accepted2ms360 KiB
8Accepted2ms360 KiB
subtask333/33
9Accepted14ms616 KiB
10Accepted27ms932 KiB
11Accepted32ms1048 KiB
12Accepted27ms856 KiB
13Accepted28ms964 KiB
14Accepted16ms616 KiB
15Accepted8ms540 KiB
16Accepted13ms492 KiB
17Accepted20ms760 KiB
18Accepted29ms1000 KiB
19Accepted12ms616 KiB
20Accepted37ms1132 KiB
subtask434/34
21Accepted48ms1384 KiB
22Accepted10ms488 KiB
23Accepted50ms1320 KiB
24Accepted50ms1316 KiB
25Accepted39ms1272 KiB
26Accepted21ms744 KiB
27Accepted41ms1272 KiB
28Accepted35ms1020 KiB
29Accepted8ms632 KiB
30Accepted30ms760 KiB
31Accepted30ms924 KiB
32Accepted3ms504 KiB
33Accepted7ms488 KiB