150772025-02-12 11:49:33DhaneHaneOszthatóság 31-gyelcpp17Hibás válasz 48/501ms512 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) {
        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
base48/50
1Elfogadva0/01ms344 KiB
2Elfogadva0/01ms512 KiB
3Elfogadva3/31ms316 KiB
4Elfogadva3/31ms316 KiB
5Elfogadva4/41ms316 KiB
6Elfogadva4/41ms316 KiB
7Elfogadva4/41ms316 KiB
8Elfogadva4/41ms500 KiB
9Elfogadva4/41ms508 KiB
10Elfogadva4/41ms316 KiB
11Elfogadva4/41ms316 KiB
12Elfogadva4/41ms328 KiB
13Elfogadva4/41ms512 KiB
14Elfogadva4/41ms316 KiB
15Elfogadva2/21ms316 KiB
16Hibás válasz0/21ms316 KiB