Submission #440618

#TimeUsernameProblemLanguageResultExecution timeMemory
440618MetalPowerKeys (IOI21_keys)C++17
0 / 100
0 ms204 KiB
#include <bits/stdc++.h> using namespace std; #include "keys.h" vector<int> find_reachable(vector<int> r, vector<int> u, vector<int> v, vector<int> c){ bool all_zero = true; int N = r.size(), M = u.size(); for(int i = 0; i < N; i++) all_zero &= (r[i] == 0); vector<int> ans(N, 1); if(!all_zero) for(int i = 0; i < N; i++) ans[i] &= (r[i] != 0); return ans; }

Compilation message (stderr)

keys.cpp: In function 'std::vector<int> find_reachable(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
keys.cpp:9:20: warning: unused variable 'M' [-Wunused-variable]
    9 |  int N = r.size(), M = u.size();
      |                    ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...