40752023-03-13 08:03:42szabel26Oszthatóság 37-telcpp17Hibás válasz 21/403ms3528 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
RészfeladatÖsszpontTesztVerdiktIdőMemória
base21/40
1Hibás válasz0/03ms1876 KiB
2Elfogadva0/03ms2120 KiB
3Hibás válasz0/33ms2332 KiB
4Elfogadva3/33ms2544 KiB
5Hibás válasz0/33ms2736 KiB
6Elfogadva3/32ms2820 KiB
7Hibás válasz0/33ms2948 KiB
8Elfogadva3/32ms3028 KiB
9Hibás válasz0/32ms3124 KiB
10Elfogadva3/32ms3248 KiB
11Elfogadva3/32ms3376 KiB
12Elfogadva3/32ms3460 KiB
13Hibás válasz0/32ms3424 KiB
14Elfogadva3/32ms3420 KiB
15Hibás válasz0/23ms3452 KiB
16Hibás válasz0/22ms3528 KiB