結果
問題 |
No.2098 [Cherry Alpha *] Introduction
|
ユーザー |
|
提出日時 | 2022-10-23 21:11:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 66,668 KB |
最終ジャッジ日時 | 2025-02-08 11:51:01 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include<iostream> #include<string> using namespace std; int main() { string s;cin>>s; if(s[0]=='Z')cout<<"1st"<<'\n'; else if(s[0]=='B')cout<<"2nd"<<'\n'; else if(s[0]=='S')cout<<"3rd"<<'\n'; else if(s[0]=='E')cout<<"4th"<<'\n'; else cout<<"Alpha"<<'\n'; return 0; }