Submission #942438
Source Code Expand
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0;i<(n);i++) #define RREP(i,n) for (int i=(n)-1;i>=0;i--) #define INF 999999999 int main() { string s; cin >> s; bool flag1 = 0, flag2 = 0; REP(i, s.length()) { if (s[i] == 'c')flag1 = 1; if (s[i] == 'f')flag2 = 1; } if (flag1&&flag2)cout << "Yes" << endl; else cout << "No" << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - CF |
User | SinAyame |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 969 Byte |
Status | WA |
Exec Time | 3 ms |
Memory | 384 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 | 3 ms | 256 KB |
0_001.txt | AC | 3 ms | 256 KB |
0_002.txt | WA | 2 ms | 256 KB |
0_003.txt | WA | 3 ms | 256 KB |
1_004.txt | AC | 3 ms | 256 KB |
1_005.txt | WA | 3 ms | 256 KB |
1_006.txt | AC | 3 ms | 384 KB |
1_007.txt | AC | 3 ms | 256 KB |
1_008.txt | WA | 2 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 |