제출 #889562

#제출 시각아이디문제언어결과실행 시간메모리
889562Faisal_SaqibPaint By Numbers (IOI16_paint)C++17
7 / 100
1 ms504 KiB
#include <iostream> #include <vector> #include <map> #include <set> #include <algorithm> using namespace std; string solve_puzzle(string s,vector<int> c) { int n=s.size(); string ans=""; int k=c[0]; set<char> pos[n]; for(int i=0;(i+k-1)<n;i++) { string cur(n,'_'); for(int j=0;j<k;j++) cur[i+j]='X'; for(int j=0;j<n;j++) pos[j].insert(cur[j]); } for(int i=0;i<n;i++) { // cout<<pos[j].sie()/<<endl; if(pos[i].size()==2) { ans+='?'; } else { ans+=(*begin(pos[i])); } } return ans; // for(int i=0;i<k;i++) // { // } return ans; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...