結果

問題 No.2098 [Cherry Alpha *] Introduction
ユーザー Kou0406
提出日時 2025-02-26 10:19:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 539 bytes
コンパイル時間 652 ms
コンパイル使用メモリ 60,096 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-02-26 10:19:43
合計ジャッジ時間 1,616 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cassert>
#define rep(i,n) for(i=0;i<(int)(n);i++)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

string s;

int main(){
    cin>>s;
    switch(s[0]){
        case 'Z':
            puts("1st");
            break;
        case 'B':
            puts("2nd");
            break;
        case 'S':
            puts("3rd");
            break;
        case 'E':
            puts("4th");
            break;
        default:
            puts("Alpha");
            break;
    }
    return 0;
}
0