提出 #499989
ソースコード 拡げる
#include<iostream>
#include<cstdio>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<functional>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
#define INF 1<<30
#define MP make_pair
#define mp make_pair
#define pb push_back
#define PB push_back
#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define ll long long
#define ull unsigned long long
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
string s;cin>>s;
string mi="";
if(s[2]=='B') mi="Bachelor";
if(s[2]=='M') mi="Master";
if(s[2]=='D') mi="Doctor";
cout<<mi<<" "<<s.substr(0,2)<<endl;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - ぼくの学生証 |
| ユーザ | ish_774 |
| 言語 | C++ (GCC 4.9.2) |
| 得点 | 50 |
| コード長 | 798 Byte |
| 結果 | AC |
| 実行時間 | 36 ms |
| メモリ | 1152 KiB |
ジャッジ結果
| セット名 | Sample | All | ||
|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 50 / 50 | ||
| 結果 | AC |
|
| セット名 | テストケース |
|---|---|
| Sample | |
| All | 00_sample_00, 10_random_small_00, 10_random_small_01, 10_random_small_02, 10_random_small_03, 10_random_small_04, 10_random_small_05, 10_random_small_06, 10_random_small_07, 10_random_small_08, 10_random_small_09, 10_random_small_10, 10_random_small_11, 10_random_small_12, 10_random_small_13, 10_random_small_14, 10_random_small_15, 10_random_small_16, 10_random_small_17, 10_random_small_18, 10_random_small_19, 10_random_small_20, 10_random_small_21, 10_random_small_22, 10_random_small_23, 10_random_small_24, 10_random_small_25, 10_random_small_26, 10_random_small_27, 10_random_small_28, 10_random_small_29 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_00 | AC | 35 ms | 976 KiB |
| 10_random_small_00 | AC | 29 ms | 1048 KiB |
| 10_random_small_01 | AC | 31 ms | 956 KiB |
| 10_random_small_02 | AC | 32 ms | 976 KiB |
| 10_random_small_03 | AC | 32 ms | 948 KiB |
| 10_random_small_04 | AC | 31 ms | 952 KiB |
| 10_random_small_05 | AC | 32 ms | 976 KiB |
| 10_random_small_06 | AC | 33 ms | 948 KiB |
| 10_random_small_07 | AC | 32 ms | 952 KiB |
| 10_random_small_08 | AC | 33 ms | 952 KiB |
| 10_random_small_09 | AC | 32 ms | 988 KiB |
| 10_random_small_10 | AC | 30 ms | 980 KiB |
| 10_random_small_11 | AC | 32 ms | 980 KiB |
| 10_random_small_12 | AC | 32 ms | 1040 KiB |
| 10_random_small_13 | AC | 31 ms | 952 KiB |
| 10_random_small_14 | AC | 33 ms | 948 KiB |
| 10_random_small_15 | AC | 32 ms | 1036 KiB |
| 10_random_small_16 | AC | 32 ms | 980 KiB |
| 10_random_small_17 | AC | 32 ms | 976 KiB |
| 10_random_small_18 | AC | 32 ms | 976 KiB |
| 10_random_small_19 | AC | 31 ms | 1040 KiB |
| 10_random_small_20 | AC | 31 ms | 996 KiB |
| 10_random_small_21 | AC | 31 ms | 976 KiB |
| 10_random_small_22 | AC | 36 ms | 980 KiB |
| 10_random_small_23 | AC | 31 ms | 1152 KiB |
| 10_random_small_24 | AC | 31 ms | 1048 KiB |
| 10_random_small_25 | AC | 31 ms | 1008 KiB |
| 10_random_small_26 | AC | 31 ms | 980 KiB |
| 10_random_small_27 | AC | 31 ms | 980 KiB |
| 10_random_small_28 | AC | 33 ms | 948 KiB |
| 10_random_small_29 | AC | 32 ms | 976 KiB |