結果

問題 No.2098 [Cherry Alpha *] Introduction
ユーザー _yurimoir
提出日時 2022-10-14 21:22:22
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 2,903 ms
コンパイル使用メモリ 245,356 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 13:05:31
合計ジャッジ時間 3,471 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin>>s;
    string ans;
    if(s[0]=='Z'){
        ans="1st";
    }else if(s[0]=='B'){
        ans="2nd";
    }else if(s[0]=='S'){
        ans="3rd";
    }else if(s[0]=='E'){
        ans="4th";
    }else{
        ans="Alpha";
    }
    cout<<ans<<endl;
    return 0;
}
0