QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#39791 | #993. 100 Boxes Per Hour... | Froggygua | WA | 101ms | 3620kb | C++17 | 630b | 2022-07-13 15:51:15 | 2022-07-13 15:51:18 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int A,B,C;
int Get(){
char c;
cin>>c;
return c=='R'?0:(c=='B'?1:2);
}
void Solve(){
cin>>A>>B>>C;
if(A>B)swap(A,B);
if(B>C)swap(B,C);
if(A>B)swap(A,B);
if(A+B>=0){
for(int i=1;i<=100;++i){
int x=Get();
if(x<=1){
cout<<"PLACE "<<x+1<<endl;
}
else{
cout<<"DISCARD"<<endl;
}
}
}
else{
int cnt[3]={0,0,0};
for(int i=1;i<=100;++i){
int x=Get();
cout<<"DISCARD"<<endl;
}
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int T;
cin>>T;
while(T--)Solve();
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 101ms
memory: 3620kb
input:
100 3 33 64 B G R R G R B R G R R B G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G R R G 84 8 8 B B B R R R R R G G G G G G G G B B B B B B B B B B B B R B B B B B B B B B B B B...
output:
PLACE 2 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 2 PLACE 1 DISCARD PLACE 1 PLACE 1 PLACE 2 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLACE 1 PLACE 1 DISCARD PLAC...
result:
wrong answer Bad score