QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#39791#993. 100 Boxes Per Hour...FroggyguaWA 101ms3620kbC++17630b2022-07-13 15:51:152022-07-13 15:51:18

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-07-13 15:51:18]
  • Judged
  • Verdict: WA
  • Time: 101ms
  • Memory: 3620kb
  • [2022-07-13 15:51:15]
  • Submitted

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