150732025-02-12 11:37:34DhaneHaneOszthatóság 31-gyelcpp17Hibás válasz 28/501ms600 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;
    vector <int> v;
    while (n >= 31) {
        int ut = (n % 10) *3;
        n = n / 10;
        n -= ut;
        v.push_back(n);
    }
    if (n == 0) {
        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
base28/50
1Elfogadva0/01ms316 KiB
2Elfogadva0/01ms316 KiB
3Elfogadva3/31ms600 KiB
4Elfogadva3/31ms316 KiB
5Elfogadva4/41ms316 KiB
6Hibás válasz0/41ms316 KiB
7Hibás válasz0/41ms316 KiB
8Elfogadva4/41ms316 KiB
9Elfogadva4/41ms316 KiB
10Hibás válasz0/41ms316 KiB
11Elfogadva4/41ms316 KiB
12Hibás válasz0/41ms316 KiB
13Hibás válasz0/41ms316 KiB
14Elfogadva4/41ms316 KiB
15Elfogadva2/21ms400 KiB
16Hibás válasz0/21ms380 KiB