제출 #642453

#제출 시각아이디문제언어결과실행 시간메모리
642453birthdaycake죄수들의 도전 (IOI22_prison)C++17
5 / 100
24 ms19156 KiB
#include "prison.h" #include<bits/stdc++.h> #define endl '\n' #define mod 1000000007 using namespace std; vector<vector<int>> devise_strategy(int N) { vector<vector<int>>ans; vector<int>d; d.push_back(0); for(int i = 1; i <= N; i++) d.push_back(i); ans.push_back(d); d.clear(); for(int i = 1; i <= N; i++){ d.push_back(1); for(int j = 1; j <= N; j++){ if(j < i) d.push_back(-2); else d.push_back(-1); } ans.push_back(d); d.clear(); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...