124532024-12-18 09:16:04feheristvanOszthatóság 31-gyelcpp17Wrong answer 25/501ms512 KiB
#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";
    } */
    vector <int> a;
    int usz;
    while(n > 0){
        usz = n % 10 * 3;
        n /= 10;
        n -= usz;
        a.push_back(n);
    }
    if(n == 0){
        cout << "IGEN\n";
    }
    else
        cout << "NEM\n";
    for(auto i : a)
        cout << i << " ";
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/50
1Accepted0/01ms320 KiB
2Wrong answer0/01ms320 KiB
3Wrong answer0/31ms508 KiB
4Accepted3/31ms512 KiB
5Accepted4/41ms320 KiB
6Wrong answer0/41ms320 KiB
7Wrong answer0/41ms388 KiB
8Accepted4/41ms320 KiB
9Accepted4/41ms320 KiB
10Wrong answer0/41ms320 KiB
11Accepted4/41ms324 KiB
12Wrong answer0/41ms320 KiB
13Wrong answer0/41ms320 KiB
14Accepted4/41ms320 KiB
15Accepted2/21ms320 KiB
16Wrong answer0/21ms320 KiB