Submission #941968
Source Code Expand
#include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; typedef pair<pii,int> piii; typedef pair<ll,ll> pll; #define reps(i,f,n) for(int i = int(f); i <= int(n); i++) #define rep(i,n) reps(i,0,int(n)-1) #define rrep(i,n) for(int i = n-1; i >= 0; i--) #define all(x) (x).begin(),(x).end() #define X first #define Y second #define sz size() #define eb emplace_back #define pb push_back int main(void){ string s; int ans = 0; cin >> s; rep(i,s.sz){ if(ans == 0 && s[i] == 'C')ans++; if(ans == 1 && s[i] == 'F')ans++; } if(ans == 2){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | ichigo |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 718 Byte |
Status | AC |
Exec Time | 73 ms |
Memory | 764 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 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 | AC | 73 ms | 764 KB |
0_001.txt | AC | 3 ms | 256 KB |
0_002.txt | AC | 3 ms | 256 KB |
0_003.txt | AC | 3 ms | 256 KB |
1_004.txt | AC | 3 ms | 256 KB |
1_005.txt | AC | 3 ms | 256 KB |
1_006.txt | AC | 3 ms | 384 KB |
1_007.txt | AC | 3 ms | 256 KB |
1_008.txt | AC | 3 ms | 256 KB |
1_009.txt | AC | 3 ms | 256 KB |
1_010.txt | AC | 3 ms | 256 KB |
1_011.txt | AC | 3 ms | 256 KB |