結果

問題 No.2098 [Cherry Alpha *] Introduction
ユーザー トミー
提出日時 2023-12-27 01:03:48
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 2,160 ms
コンパイル使用メモリ 192,828 KB
最終ジャッジ日時 2025-02-18 14:43:49
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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