제출 #381046

#제출 시각아이디문제언어결과실행 시간메모리
381046BlancaHMPainting Squares (IOI20_squares)C++14
10 / 100
187 ms400 KiB
#include <iostream> #include <vector> #include <map> using namespace std; vector<int> paint(int n) { vector<int> squares = vector<int>(n+1, 1); squares[n] = n; return squares; } int find_location(int n, vector<int> c) { for (int i = 0; i < (int) c.size(); i++) { if (c[i] == -1) return n - i; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...