제출 #465823

#제출 시각아이디문제언어결과실행 시간메모리
465823MohamedFaresNebiliHandcrafted Gift (IOI20_gift)C++14
0 / 100
1585 ms14564 KiB
#include "gift.h" #include <bits/stdc++.h> using namespace std; int construct(int n, int r, std::vector<int> a, std::vector<int> b, std::vector<int> x) { string s=""; char c='R'; bool f=true; for(int l=0;l<n;l++) { s=s+c; if(c=='R') c='B'; else c='R'; } for(int l=0;l<r&&f;l++) { int x=a[l], y=b[l]; if(x==y) f=false; } if(f) { craft(s); return 1; } 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...
#Verdict Execution timeMemoryGrader output
Fetching results...