提出 #52312353


ソースコード 拡げる

#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define pa first
#define pb second
#define endl '\n'
#define vint vector<int>
#define vlong vector<ll>
#define pii pair<int, int>
#define rep(i, a, b) for (int i = int(a); i < int(b); i++)
#define rng(i, a, b) for (int i = int(a); i <= int(b); i++)
#define per(i, a, b) for (int i = int(b - 1); i >= int(a); i--)
#define gnr(i, a, b) for (int i = int(b); i >= int(a); i--)
using namespace std;
#define ATC
#ifdef ATC
#include <atcoder/all>
using namespace atcoder;
#endif

#ifdef MT
void solve()
{
}
#endif

int main(void)
{
    std::ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    string s, t;
    cin >> s >> t;
    int ptr = 0;
    for (auto ch : s) {
        if (ptr == 3)
            break;
        if (ch == t[ptr] - 'A' + 'a')
            ++ptr;
    }
    if (ptr == 3) {
        cout << "Yes";
        return 0;
    }
    if (ptr == 2 && t[2] == 'X') {
        cout << "Yes";
        return 0;
    }
    cout << "No";
#ifdef MT
    int t;
    cin >> t;
    for (int i = 0; i < t; i++)
        solve();
#endif
}

提出情報

提出日時
問題 C - Airport Code
ユーザ L1bra
言語 C++ 20 (gcc 12.2)
得点 300
コード長 1168 Byte
結果 AC
実行時間 1 ms
メモリ 3780 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 300 / 300
結果
AC × 3
AC × 48
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt, 01_random_19.txt, 01_random_20.txt, 01_random_21.txt, 01_random_22.txt, 01_random_23.txt, 01_random_24.txt, 01_random_25.txt, 01_random_26.txt, 01_random_27.txt, 01_random_28.txt, 01_random_29.txt, 01_random_30.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt, 02_handmade_05.txt, 02_handmade_06.txt, 02_handmade_07.txt, 02_handmade_08.txt, 02_handmade_09.txt, 02_handmade_10.txt, 02_handmade_11.txt, 02_handmade_12.txt, 02_handmade_13.txt, 02_handmade_14.txt, 02_handmade_15.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 1 ms 3440 KiB
00_sample_02.txt AC 1 ms 3464 KiB
00_sample_03.txt AC 1 ms 3560 KiB
01_random_01.txt AC 1 ms 3460 KiB
01_random_02.txt AC 1 ms 3528 KiB
01_random_03.txt AC 1 ms 3524 KiB
01_random_04.txt AC 1 ms 3516 KiB
01_random_05.txt AC 1 ms 3464 KiB
01_random_06.txt AC 1 ms 3376 KiB
01_random_07.txt AC 1 ms 3508 KiB
01_random_08.txt AC 1 ms 3512 KiB
01_random_09.txt AC 1 ms 3372 KiB
01_random_10.txt AC 1 ms 3644 KiB
01_random_11.txt AC 1 ms 3504 KiB
01_random_12.txt AC 1 ms 3560 KiB
01_random_13.txt AC 1 ms 3560 KiB
01_random_14.txt AC 1 ms 3388 KiB
01_random_15.txt AC 1 ms 3464 KiB
01_random_16.txt AC 1 ms 3516 KiB
01_random_17.txt AC 1 ms 3516 KiB
01_random_18.txt AC 1 ms 3440 KiB
01_random_19.txt AC 1 ms 3568 KiB
01_random_20.txt AC 1 ms 3644 KiB
01_random_21.txt AC 1 ms 3512 KiB
01_random_22.txt AC 1 ms 3440 KiB
01_random_23.txt AC 1 ms 3464 KiB
01_random_24.txt AC 1 ms 3468 KiB
01_random_25.txt AC 1 ms 3648 KiB
01_random_26.txt AC 1 ms 3624 KiB
01_random_27.txt AC 1 ms 3652 KiB
01_random_28.txt AC 1 ms 3524 KiB
01_random_29.txt AC 1 ms 3776 KiB
01_random_30.txt AC 1 ms 3640 KiB
02_handmade_01.txt AC 1 ms 3560 KiB
02_handmade_02.txt AC 1 ms 3620 KiB
02_handmade_03.txt AC 1 ms 3588 KiB
02_handmade_04.txt AC 1 ms 3652 KiB
02_handmade_05.txt AC 1 ms 3488 KiB
02_handmade_06.txt AC 1 ms 3588 KiB
02_handmade_07.txt AC 1 ms 3548 KiB
02_handmade_08.txt AC 1 ms 3620 KiB
02_handmade_09.txt AC 1 ms 3696 KiB
02_handmade_10.txt AC 1 ms 3600 KiB
02_handmade_11.txt AC 1 ms 3780 KiB
02_handmade_12.txt AC 1 ms 3484 KiB
02_handmade_13.txt AC 1 ms 3456 KiB
02_handmade_14.txt AC 1 ms 3516 KiB
02_handmade_15.txt AC 1 ms 3580 KiB