Submission #735369

#TimeUsernameProblemLanguageResultExecution timeMemory
735369keisuke6Painting Walls (APIO20_paint)C++14
0 / 100
1 ms300 KiB
#include "paint.h" #include <iostream> #include <vector> using namespace std; int minimumInstructions( int N, int M, int K, vector<int> C, vector<int> A, vector<vector<int>> B) { if(N%M) return -1; for(int i=0;i<N;i++){ int ind = i%M; bool ok = false; for(int x:B[ind]){ if(C[i] == x) ok = true; } if(!ok){ return -1; } } return N/M; }
#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...