이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
#include "grader.h"
using namespace std;
#define ll long long
#define forn(i,n) for(int i=0;i<n;i++)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(),v.rend()
#define pb push_back
#define sz(a) (int)a.size()
void Solve(){
set<int> a, b, c;
for(int i = 0;i < 6;++i){
a.insert(i + 1);
}
for(int i = 0;i < 10;++i){
b.insert(i + 1);
}
for(int i = 0;i < 10;++i){
c.insert(i + 1);
}
while(true){
int A = *a.begin(), B = *b.begin(), C = *c.begin();
int val = Theory(A, B, C);
if(!val)return;
if(val == 1)a.erase(a.begin());
if(val == 2)b.erase(b.begin());
if(val == 3)c.erase(c.begin());
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |