QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772962#1795. Beer Can GameI_be_wannaWA 495ms95352kbC++17266b2024-11-22 23:12:072024-11-22 23:12:07

Judging History

你现在查看的是最新测评结果

  • [2024-11-22 23:12:07]
  • 评测
  • 测评结果:WA
  • 用时:495ms
  • 内存:95352kb
  • [2024-11-22 23:12:07]
  • 提交

answer

#include<iostream>
using namespace std;
int main(){
	char n[93838989];
	int l;
	for(int i=0;i<93838989;i++){
		cin>>n[i];
	}
	if(n[0]=='a'){
		l=4;
	}else if(n[0]=='t'){
		l=6;
	}else if(n[0]=='j'){
		l=10;
	}else{
		l=0;
	}
	cout<<l;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 485ms
memory: 95352kb

input:

aa
nn

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 494ms
memory: 95264kb

input:

ttt
ggg

output:

6

result:

ok single line: '6'

Test #3:

score: 0
Accepted
time: 490ms
memory: 95144kb

input:

jjjjj
fffff

output:

10

result:

ok single line: '10'

Test #4:

score: -100
Wrong Answer
time: 495ms
memory: 95328kb

input:

zzzzzzzzzzzzzzzzzzz
nnnnnnnnnnnnnnnnnnn

output:

0

result:

wrong answer 1st lines differ - expected: '38', found: '0'