150782025-02-12 11:52:01DhaneHaneOszthatóság 31-gyelcpp17Elfogadva 50/501ms508 KiB
// 31el.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
using namespace std;

int main()
{
    long long n; cin >> n;
    if (n%31==0) {
        cout << "IGEN" << "\n";
    }
    else cout << "NEM" << "\n";
    if (n == 0) cout << n << " ";
    while (n > 0) {
        n = n / 10 - (n % 10 * 3);
        if (n>=0) cout << n << " ";
    }
    cout << "\n";
}

// 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
base50/50
1Elfogadva0/01ms316 KiB
2Elfogadva0/01ms316 KiB
3Elfogadva3/31ms508 KiB
4Elfogadva3/31ms508 KiB
5Elfogadva4/41ms316 KiB
6Elfogadva4/41ms316 KiB
7Elfogadva4/41ms316 KiB
8Elfogadva4/41ms316 KiB
9Elfogadva4/41ms500 KiB
10Elfogadva4/41ms316 KiB
11Elfogadva4/41ms500 KiB
12Elfogadva4/41ms316 KiB
13Elfogadva4/41ms336 KiB
14Elfogadva4/41ms360 KiB
15Elfogadva2/21ms316 KiB
16Elfogadva2/21ms500 KiB