Submission #941929
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define ll long long #define vvi vector< vector<int> > #define vi vector<int> #define All(X) X.begin(),X.end() #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define REP(i,n) for(int i=0;i<(int)(n);i++) #define pb push_back #define pii pair<int,int> #define mp make_pair #define pi 3.14159265359 #define shosu(X) fixed << setprecision(X) ll gcd(ll a,ll b){return b?gcd(b,a%b):a;} ll lcm(ll a,ll b){return a/gcd(a,b)*b;} int main(){ string s; cin >> s; int f = 0; REP(i,s.size()){ if(s[i]=='C' && f == 0) f = 1; if(s[i]=='F' && f == 1) f == 2; } if(f==2) cout << "Yes" << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | lp6m |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 672 Byte |
Status | WA |
Exec Time | 9 ms |
Memory | 764 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 100 | ||||
Status |
|
|
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 | 9 ms | 764 KB |
0_001.txt | WA | 2 ms | 256 KB |
0_002.txt | WA | 2 ms | 256 KB |
0_003.txt | WA | 2 ms | 256 KB |
1_004.txt | WA | 2 ms | 256 KB |
1_005.txt | WA | 2 ms | 256 KB |
1_006.txt | WA | 3 ms | 256 KB |
1_007.txt | WA | 2 ms | 256 KB |
1_008.txt | WA | 2 ms | 256 KB |
1_009.txt | WA | 3 ms | 256 KB |
1_010.txt | WA | 2 ms | 256 KB |
1_011.txt | WA | 2 ms | 256 KB |