Submission #941910


Source Code Expand

/**
 *    author:  [itmo] enot.1.10
 *    created: 23.10.2016 14:58:09       
**/
#define __USE_MINGW_ANSI_STDIO 0
#include <bits/stdc++.h>

#define F first
#define S second
#define pb push_back
#define mp make_pair
#define forn(i, n) for(int i = 0 ; (i) < (n) ; ++i)
#define eprintf(...) fprintf(stderr, __VA_ARGS__),fflush(stderr)
#define sz(a) ((int)(a).size())
#define all(a) (a).begin(),a.end()
#define pw(x) (1LL<<(x))

using namespace std;

typedef long long ll;
typedef double dbl;
typedef vector<int> vi;
typedef pair<int, int> pi;

const int inf = 1.01e9;
const dbl eps = 1e-9;

/* --- main part --- */

char s[111];

int main()
{
    #ifdef home
        assert(freopen("1.in", "r", stdin));
        assert(freopen("1.out", "w", stdout));
    #endif
    scanf("%s", s);
    int w = 0;
    for (int i = 0; s[i]; ++i)
    {
        if (s[i] == 'C') w = 1;
        if (s[i] == 'F' && w) return 0 * printf("YES\n");
    }
    printf("NO\n");
    #ifdef home
        eprintf("time = %d ms\n", (int)(clock() * 1000. / CLOCKS_PER_SEC));
    #endif
    return 0;
}

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:38:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s", s);
                   ^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 100
Status
WA × 4
WA × 12
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 WA 3 ms 256 KB
0_002.txt WA 3 ms 256 KB
0_003.txt WA 3 ms 256 KB
1_004.txt WA 3 ms 256 KB
1_005.txt WA 3 ms 256 KB
1_006.txt WA 3 ms 256 KB
1_007.txt WA 3 ms 256 KB
1_008.txt WA 3 ms 256 KB
1_009.txt WA 3 ms 256 KB
1_010.txt WA 3 ms 256 KB
1_011.txt WA 3 ms 256 KB