Submission #499954


Source Code Expand

#include <bits/stdc++.h>
using namespace std;
const int dx[]={1,0,0,-1,1,-1,-1,1};
const int dy[]={0,1,-1,0,1,1,-1,-1};
const int INF = 1<<30;
const double EPS = 1e-8;
#define PB push_back
#define mk make_pair
#define fr first
#define sc second
#define reps(i,j,k) for(int i = (j); i < (k); ++i)
#define rep(i,j) reps(i,0,j)
#define MOD 1000000007
#define lengthof(x) (sizeof(x) / sizeof(*(x)))
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> Pii;
typedef pair<int,vi > P;
typedef long long ll;
int main(){
    string str;
    cin >> str;
    if(str[2] == 'B'){
        cout << "Bachelor" << " " << str[0] << str[1] << "\n";
    }
    else if(str[2] == 'M'){
        cout << "Master" << " " << str[0] << str[1] << "\n";
    }
    else{
        cout << "Doctor" << " " << str[0] << str[1] << "\n";
    }
    return 0;
}

Submission Info

Submission Time
Task A - ぼくの学生証
User Pelchigi
Language C++ (GCC 4.9.2)
Score 50
Code Size 872 Byte
Status AC
Exec Time 38 ms
Memory 1144 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 50 / 50
Status AC
AC × 31
Set Name Test Cases
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
Case Name Status Exec Time Memory
00_sample_00 AC 36 ms 1004 KiB
10_random_small_00 AC 33 ms 980 KiB
10_random_small_01 AC 31 ms 984 KiB
10_random_small_02 AC 31 ms 976 KiB
10_random_small_03 AC 30 ms 1140 KiB
10_random_small_04 AC 31 ms 976 KiB
10_random_small_05 AC 31 ms 1040 KiB
10_random_small_06 AC 31 ms 972 KiB
10_random_small_07 AC 31 ms 976 KiB
10_random_small_08 AC 32 ms 980 KiB
10_random_small_09 AC 31 ms 1000 KiB
10_random_small_10 AC 31 ms 984 KiB
10_random_small_11 AC 33 ms 996 KiB
10_random_small_12 AC 31 ms 1048 KiB
10_random_small_13 AC 31 ms 1056 KiB
10_random_small_14 AC 31 ms 980 KiB
10_random_small_15 AC 38 ms 1040 KiB
10_random_small_16 AC 34 ms 984 KiB
10_random_small_17 AC 33 ms 952 KiB
10_random_small_18 AC 33 ms 956 KiB
10_random_small_19 AC 30 ms 968 KiB
10_random_small_20 AC 31 ms 972 KiB
10_random_small_21 AC 32 ms 992 KiB
10_random_small_22 AC 30 ms 1144 KiB
10_random_small_23 AC 31 ms 1048 KiB
10_random_small_24 AC 33 ms 1044 KiB
10_random_small_25 AC 31 ms 1044 KiB
10_random_small_26 AC 32 ms 976 KiB
10_random_small_27 AC 31 ms 976 KiB
10_random_small_28 AC 32 ms 976 KiB
10_random_small_29 AC 31 ms 980 KiB