Submission #942304


Source Code Expand

#include <iostream> 
#include <string> 
#include <vector> 
#include <cmath> 
#include <algorithm> 
#include <cstdlib> 
#include <ctime> 
#include <cstdio> 
#include <functional> 
#include <set> 
#include <sstream> 
#include <cctype>
#include <stack>
#include <queue>
#include <cstring>
#include <map>
#include <list>
#include <cassert>
 
using namespace std; 

const long long INF=1LL<<50LL;
const double PI=3.14159265358979323846264;
const long long mod=1000000000LL+7LL;

long long gcd(long long x,long long y){
	return y==0 ? x : gcd(y,x%y);
}

int main(){

	string s;
	cin>>s;

	int x=0,y=0;
	for(int i=0;i<s.size();i++){
		if(s[i]=='C'){x=i;break;}
	}

	for(int i=s.size()-1;i>=0;i--){
		if(s[i]=='F'){x=i;break;}
	}

	if(x<y) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;

}

Submission Info

Submission Time
Task A - CF
User lay20114
Language C++14 (GCC 5.4.1)
Score 0
Code Size 825 Byte
Status WA
Exec Time 3 ms
Memory 256 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
AC × 1
WA × 3
AC × 5
WA × 7
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt, 1_010.txt, 1_011.txt
Case Name Status Exec Time Memory
0_000.txt WA 3 ms 256 KB
0_001.txt AC 3 ms 256 KB
0_002.txt WA 3 ms 256 KB
0_003.txt WA 3 ms 256 KB
1_004.txt AC 2 ms 256 KB
1_005.txt WA 3 ms 256 KB
1_006.txt AC 3 ms 256 KB
1_007.txt AC 2 ms 256 KB
1_008.txt WA 3 ms 256 KB
1_009.txt AC 3 ms 256 KB
1_010.txt WA 3 ms 256 KB
1_011.txt WA 3 ms 256 KB