38622023-03-03 12:33:16norbertvidaOszthatóság 31-gyelcpp17Wrong answer 30/503ms4048 KiB
#include <iostream>
#include <vector>
#define lli long long int

using namespace std;

int main() {
    iostream::sync_with_stdio(0);
    cin.tie(0);
    lli N;
    cin >> N;
    cout << (N % 31 ? "NEM\n" : "IGEN\n"); 
    vector<lli> szamok;
    if(N / 10 < (N % 10) * 3) goto end;
    while(N >= 31) {
        N = (N / 10) - (N % 10) * 3;
        szamok.push_back(N);
    }
    for(lli szam : szamok) cout << szam << " ";
end:
    cout << "\n";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base30/50
1Accepted0/03ms1828 KiB
2Accepted0/03ms2052 KiB
3Accepted3/33ms2256 KiB
4Accepted3/33ms2444 KiB
5Accepted4/43ms2680 KiB
6Wrong answer0/42ms2744 KiB
7Wrong answer0/43ms2868 KiB
8Accepted4/42ms2956 KiB
9Accepted4/43ms3188 KiB
10Wrong answer0/42ms3296 KiB
11Accepted4/42ms3380 KiB
12Wrong answer0/43ms3508 KiB
13Wrong answer0/42ms3608 KiB
14Accepted4/42ms3732 KiB
15Accepted2/23ms3952 KiB
16Accepted2/22ms4048 KiB