150752025-02-12 11:46:22DhaneHaneOszthatóság 31-gyelcpp17Hibás válasz 44/501ms524 KiB
// 31el.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include <iostream>
#include <vector>
using namespace std;

int main()
{
    long long n; cin >> n;
    if (n%31==0) {
        cout << "IGEN" << "\n";
    }
    else cout << "NEM" << "\n";
    while (n >= 31) {
        int ut = (n % 10) *3;
        n = n / 10;
        n -= ut;
        if (n>=0) 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
base44/50
1Elfogadva0/01ms316 KiB
2Elfogadva0/01ms316 KiB
3Elfogadva3/31ms316 KiB
4Elfogadva3/31ms316 KiB
5Elfogadva4/41ms316 KiB
6Elfogadva4/41ms316 KiB
7Elfogadva4/41ms316 KiB
8Elfogadva4/41ms316 KiB
9Elfogadva4/41ms316 KiB
10Elfogadva4/41ms316 KiB
11Elfogadva4/41ms524 KiB
12Hibás válasz0/41ms316 KiB
13Elfogadva4/41ms316 KiB
14Elfogadva4/41ms320 KiB
15Elfogadva2/21ms316 KiB
16Hibás válasz0/21ms368 KiB