3382021-10-15 12:11:35fp3t3rOszthatóság 37-telcpp11Wrong answer 30/402ms1900 KiB
#include <iostream>
#include <vector>
#include <stdint.h>

typedef int64_t i64; 
int main() {
    i64 x, ox; std::cin >> x; if (x < 37) { puts("NEM"); return 0; }
    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/01ms1776 KiB
3Accepted3/31ms1848 KiB
4Accepted3/31ms1848 KiB
5Accepted3/31ms1848 KiB
6Accepted3/31ms1860 KiB
7Accepted3/31ms1860 KiB
8Wrong answer0/31ms1868 KiB
9Accepted3/31ms1864 KiB
10Accepted3/31ms1872 KiB
11Accepted3/31ms1880 KiB
12Accepted3/31ms1884 KiB
13Accepted3/31ms1884 KiB
14Wrong answer0/31ms1888 KiB
15Runtime error0/21ms1876 KiB
16Wrong answer0/21ms1900 KiB