40732023-03-13 08:02:30szabel26Oszthatóság 37-telcpp17Wrong answer 21/403ms3692 KiB
// oszthatosag37.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
#include <queue>
#define ll long long
using namespace std;

ll n, i, u;
bool ok = false;

vector<ll>v;

int main()
{
    cin >> n;
    while (n > 0)
    {
        u = n % 10;
        n /= 10;
        n -= 11 * u;
        if (n >= 0)
        {
            v.push_back(n);
            if (!(n % 17))
            {
                ok = true;
            }
            //else ok = false;
        }
    }

    if (ok) cout << "IGEN\n";
    else cout << "NEM\n";

    for (auto& e : v) cout << e << " ";
}

// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu

// Tips for Getting Started: 
//   1. Use the Solution Explorer window to add/manage files
//   2. Use the Team Explorer window to connect to source control
//   3. Use the Output window to see build output and other messages
//   4. Use the Error List window to view errors
//   5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
//   6. In the future, to open this project again, go to File > Open > Project and select the .sln file
SubtaskSumTestVerdictTimeMemory
base21/40
1Accepted0/03ms1744 KiB
2Accepted0/03ms1916 KiB
3Wrong answer0/33ms2148 KiB
4Accepted3/33ms2364 KiB
5Wrong answer0/33ms2576 KiB
6Accepted3/33ms2784 KiB
7Wrong answer0/33ms3004 KiB
8Accepted3/33ms3060 KiB
9Wrong answer0/32ms3060 KiB
10Accepted3/32ms3176 KiB
11Accepted3/33ms3300 KiB
12Accepted3/32ms3300 KiB
13Wrong answer0/33ms3432 KiB
14Accepted3/32ms3480 KiB
15Wrong answer0/23ms3608 KiB
16Wrong answer0/22ms3692 KiB