Submission #6002007
Source Code Expand
#include <bits/stdc++.h> #define REP(i, n) for(ll i = 0; i < n; i++) #define ALL(x) (x).begin(),(x).end() #define MSG(x) cout << x << endl; #define YN(x) x ? cout << "YES" << endl : cout << "NO" << endl; #define Yn(x) x ? cout << "Yes" << endl : cout << "No" << endl; #define yn(x) x ? cout << "yes" << endl : cout << "no" << endl; using namespace std; using ll = long long; const static ll MOD = 1e9 + 7; int main(int argc, char *argv[]) { string s; cin >> s; bool ok = false; REP(i, s.size()) { if (s.at(i) == 'C') ok = true; if (s.at(i) == 'F' && ok) { MSG("Yes") exit(EXIT_SUCCESS); } } MSG("No") }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | hnymA |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 706 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 1 ms | 256 KB |
0_001.txt | AC | 1 ms | 256 KB |
0_002.txt | AC | 1 ms | 256 KB |
0_003.txt | AC | 1 ms | 256 KB |
1_004.txt | AC | 1 ms | 256 KB |
1_005.txt | AC | 1 ms | 256 KB |
1_006.txt | AC | 1 ms | 256 KB |
1_007.txt | AC | 1 ms | 256 KB |
1_008.txt | AC | 1 ms | 256 KB |
1_009.txt | AC | 1 ms | 256 KB |
1_010.txt | AC | 1 ms | 256 KB |
1_011.txt | AC | 1 ms | 256 KB |