提出 #57768390


ソースコード 拡げる

#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using ld = long double;
using pl = pair<ll, ll>;
constexpr ll INF = 1e9 + 7;
constexpr ll mod = 1e9 + 7;
constexpr ld eps = 1e-9;
const ld PI = acos(-1);

int main() {
    cin.tie(nullptr)->sync_with_stdio(false);
    char a, b, c;
    cin >> a >> b >> c;
    if (a != b) {
        cout << "A";
    } else if (b != c) {
        cout << "C";
    } else cout << "B";
}

提出情報

提出日時
問題 A - Jiro
ユーザ ZergTricky
言語 C++ 20 (gcc 12.2)
得点 150
コード長 457 Byte
結果 AC
実行時間 1 ms
メモリ 3500 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 150 / 150
結果
AC × 2
AC × 6
セット名 テストケース
Sample 00_sample_01.txt, 00_sample_02.txt
All 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt
ケース名 結果 実行時間 メモリ
00_sample_01.txt AC 1 ms 3400 KiB
00_sample_02.txt AC 1 ms 3496 KiB
01_test_01.txt AC 1 ms 3436 KiB
01_test_02.txt AC 1 ms 3500 KiB
01_test_03.txt AC 1 ms 3484 KiB
01_test_04.txt AC 1 ms 3424 KiB