Submission #44045403


Source Code Expand

Copy
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
if(s=="ACE"||s=="BDF"||s=="CEG"||s=="DFA"||s=="EGB"||s=="FAC"||s=="GBD"){
cout<<"Yes";
}
else{
cout<<"No";
}
return 0;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#include<bits/stdc++.h>
using namespace std;

int main(){
	string s;
	cin>>s;
	
	if(s=="ACE"||s=="BDF"||s=="CEG"||s=="DFA"||s=="EGB"||s=="FAC"||s=="GBD"){
		cout<<"Yes";
	}
	else{
		cout<<"No";
	}
	return 0;
}

Submission Info

Submission Time
Task A - Chord
User Samuel131011
Language C++ (GCC 9.2.1)
Score 100
Code Size 223 Byte
Status AC
Exec Time 7 ms
Memory 3620 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
Set Name Test Cases
Sample sample00.txt, sample01.txt, sample02.txt
All sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt
Case Name Status Exec Time Memory
sample00.txt AC 7 ms 3580 KB
sample01.txt AC 2 ms 3584 KB
sample02.txt AC 2 ms 3532 KB
testcase00.txt AC 3 ms 3472 KB
testcase01.txt AC 2 ms 3456 KB
testcase02.txt AC 2 ms 3536 KB
testcase03.txt AC 2 ms 3508 KB
testcase04.txt AC 2 ms 3584 KB
testcase05.txt AC 2 ms 3464 KB
testcase06.txt AC 5 ms 3544 KB
testcase07.txt AC 2 ms 3584 KB
testcase08.txt AC 2 ms 3464 KB
testcase09.txt AC 3 ms 3620 KB
testcase10.txt AC 2 ms 3540 KB


2025-04-05 (Sat)
22:46:51 +00:00