結果
問題 | No.2098 [Cherry Alpha *] Introduction |
ユーザー | Manuel1024 |
提出日時 | 2022-12-11 08:16:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 361 bytes |
コンパイル時間 | 744 ms |
コンパイル使用メモリ | 63,972 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-15 06:20:13 |
合計ジャッジ時間 | 1,302 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(){string line;getline(cin, line);if(line[0] == 'Z') cout << "1st" << endl;else if(line[0] == 'B') cout << "2nd" << endl;else if(line[0] == 'S') cout << "3rd" << endl;else if(line[0] == 'E') cout << "4th" << endl;else cout << "Alpha" << endl;return 0;}