3392021-10-15 12:14:38fp3t3rOszthatóság 37-telcpp11Wrong answer 0/402ms1900 KiB
#include <iostream>
#include <vector>
#include <stdint.h>

typedef int64_t i64; 
int main() {
    i64 x, ox; std::cin >> x; 
    if (x % 37 == 0) puts("IGEN");
    else puts("NEM");
    if (x )
    ox = x;
    std::vector<int> sol;
    while (x > 37) {
        x = x/10 - (x%10)*11;
        if (x > 0) sol.push_back(x);
    }
    if (ox % 37) puts("NEM");
    else puts("IGEN");

    for (auto x : sol) std::cout << x << " ";
    if (sol.size()) std::cout << "\n";
}
    
SubtaskSumTestVerdictTimeMemory
base0/40
1Wrong answer0/02ms1740 KiB
2Wrong answer0/01ms1784 KiB
3Wrong answer0/31ms1840 KiB
4Wrong answer0/31ms1848 KiB
5Wrong answer0/31ms1848 KiB
6Wrong answer0/31ms1856 KiB
7Wrong answer0/31ms1856 KiB
8Wrong answer0/31ms1864 KiB
9Wrong answer0/31ms1864 KiB
10Wrong answer0/31ms1872 KiB
11Wrong answer0/31ms1872 KiB
12Wrong answer0/31ms1880 KiB
13Wrong answer0/31ms1884 KiB
14Wrong answer0/31ms1884 KiB
15Wrong answer0/21ms1896 KiB
16Wrong answer0/21ms1900 KiB