3372021-10-15 12:09:26fp3t3rOszthatóság 37-telcpp11Wrong answer 30/402ms1888 KiB
#include <iostream>
#include <vector>
#include <stdint.h>

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

    for (auto x : sol) std::cout << x << " ";
    if (sol.size()) std::cout << "\n";
}
    
SubtaskSumTestVerdictTimeMemory
base30/40
1Accepted0/02ms1740 KiB
2Accepted0/01ms1780 KiB
3Accepted3/31ms1848 KiB
4Accepted3/31ms1848 KiB
5Accepted3/32ms1856 KiB
6Accepted3/31ms1856 KiB
7Accepted3/31ms1860 KiB
8Wrong answer0/32ms1760 KiB
9Accepted3/31ms1864 KiB
10Accepted3/31ms1868 KiB
11Accepted3/31ms1872 KiB
12Accepted3/31ms1880 KiB
13Accepted3/31ms1884 KiB
14Wrong answer0/31ms1888 KiB
15Runtime error0/22ms1888 KiB
16Runtime error0/21ms1880 KiB