QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772958#1795. Beer Can GameI_be_wannaWA 488ms95332kbC++17203b2024-11-22 23:10:512024-11-22 23:10:53

Judging History

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

  • [2024-11-22 23:10:53]
  • 评测
  • 测评结果:WA
  • 用时:488ms
  • 内存:95332kb
  • [2024-11-22 23:10:51]
  • 提交

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{
		l=0;
	}
	cout<<l;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 488ms
memory: 95332kb

input:

aa
nn

output:

4

result:

ok single line: '4'

Test #2:

score: -100
Wrong Answer
time: 484ms
memory: 95260kb

input:

ttt
ggg

output:

0

result:

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