3412021-10-15 12:15:24fp3t3rOszthatóság 37-telcpp11Wrong answer 30/402ms1828 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);
    }

    for (auto x : sol) std::cout << x << " ";
    if (sol.size()) std::cout << "\n";
}
    
SubtaskSumTestVerdictTimeMemory
base30/40
1Accepted0/02ms1736 KiB
2Accepted0/01ms1772 KiB
3Accepted3/31ms1720 KiB
4Accepted3/31ms1720 KiB
5Accepted3/31ms1720 KiB
6Accepted3/31ms1824 KiB
7Accepted3/31ms1724 KiB
8Wrong answer0/31ms1720 KiB
9Accepted3/31ms1824 KiB
10Accepted3/31ms1824 KiB
11Accepted3/31ms1720 KiB
12Accepted3/31ms1824 KiB
13Accepted3/31ms1824 KiB
14Wrong answer0/31ms1720 KiB
15Wrong answer0/21ms1824 KiB
16Wrong answer0/22ms1828 KiB