Submission #143348


Source Code Expand

Copy
#include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>
 
#define mp       make_pair
#define pb       push_back
#define all(x)   (x).begin(),(x).end()
#define rep(i,n) for(int i=0;i<(n);i++)
 
using namespace std;
 
typedef    long long          ll;
typedef    unsigned long long ull;
typedef    vector<bool>       vb;
typedef    vector<int>        vi;
typedef    vector<vb>         vvb;
typedef    vector<vi>         vvi;
typedef    pair<int,int>      pii;
 
const double EPS=1e-9;
 
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main(){
	string s;
	cin >> s;
	rep(i,s.size()){
		switch(s[i]){
		case 'O':
			s[i] = '0';
			break;
		case 'D':
			s[i] = '0';
			break;
		case 'I':
			s[i] = '1';
			break;
		case 'Z':
			s[i] = '2';
			break;
		case 'S':
			s[i] = '5';
			break;
		case 'B':
			s[i] = '8';
			break;
		}
	}
	cout << s << endl;
}

Submission Info

Submission Time
Task A - お買い物クライシス
User igaxx
Language C++ (G++ 4.6.4)
Score 100
Code Size 1165 Byte
Status AC
Exec Time 26 ms
Memory 920 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 39
Set Name Test Cases
All char_0.txt, char_1.txt, char_2.txt, char_3.txt, char_4.txt, char_5.txt, char_6.txt, char_7.txt, char_8.txt, char_9.txt, char_B.txt, char_D.txt, char_I.txt, char_O.txt, char_S.txt, char_Z.txt, chars_1.txt, chars_2.txt, chars_3.txt, chars_4.txt, chars_5.txt, hand_1.txt, hand_2.txt, hand_3.txt, hand_4.txt, hand_5.txt, num_1.txt, num_2.txt, num_3.txt, random_1.txt, random_10.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt
Case Name Status Exec Time Memory
char_0.txt AC 20 ms 800 KB
char_1.txt AC 24 ms 796 KB
char_2.txt AC 20 ms 916 KB
char_3.txt AC 22 ms 916 KB
char_4.txt AC 22 ms 792 KB
char_5.txt AC 24 ms 864 KB
char_6.txt AC 24 ms 792 KB
char_7.txt AC 25 ms 696 KB
char_8.txt AC 22 ms 796 KB
char_9.txt AC 21 ms 920 KB
char_B.txt AC 22 ms 800 KB
char_D.txt AC 24 ms 796 KB
char_I.txt AC 22 ms 912 KB
char_O.txt AC 21 ms 908 KB
char_S.txt AC 24 ms 804 KB
char_Z.txt AC 22 ms 920 KB
chars_1.txt AC 25 ms 720 KB
chars_2.txt AC 20 ms 804 KB
chars_3.txt AC 23 ms 920 KB
chars_4.txt AC 20 ms 808 KB
chars_5.txt AC 23 ms 796 KB
hand_1.txt AC 21 ms 844 KB
hand_2.txt AC 21 ms 916 KB
hand_3.txt AC 19 ms 792 KB
hand_4.txt AC 21 ms 808 KB
hand_5.txt AC 21 ms 788 KB
num_1.txt AC 26 ms 820 KB
num_2.txt AC 23 ms 912 KB
num_3.txt AC 23 ms 920 KB
random_1.txt AC 25 ms 800 KB
random_10.txt AC 25 ms 916 KB
random_2.txt AC 22 ms 696 KB
random_3.txt AC 25 ms 796 KB
random_4.txt AC 23 ms 912 KB
random_5.txt AC 23 ms 796 KB
random_6.txt AC 22 ms 916 KB
random_7.txt AC 22 ms 920 KB
random_8.txt AC 23 ms 800 KB
random_9.txt AC 20 ms 912 KB
sample_1.txt AC 20 ms 916 KB
sample_2.txt AC 22 ms 796 KB
sample_3.txt AC 23 ms 796 KB