Submission #143444


Source Code Expand

Copy
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String str = sc.next();

		
		str = str.replace('O', '0')
				.replace('D', '0')
				.replace('I', '1')
				.replace('Z', '2')
				.replace('S', '5')
				.replace('B', '8');
		
		System.out.println(Integer.parseInt(str));
	}
}

Submission Info

Submission Time
Task A - お買い物クライシス
User scache
Language Java (OpenJDK 1.7.0)
Score 100
Code Size 372 Byte
Status AC
Exec Time 542 ms
Memory 18568 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 542 ms 18428 KB
char_1.txt AC 476 ms 18564 KB
char_2.txt AC 472 ms 18436 KB
char_3.txt AC 468 ms 18428 KB
char_4.txt AC 472 ms 18492 KB
char_5.txt AC 509 ms 18488 KB
char_6.txt AC 466 ms 18560 KB
char_7.txt AC 481 ms 18556 KB
char_8.txt AC 464 ms 18432 KB
char_9.txt AC 474 ms 18428 KB
char_B.txt AC 467 ms 18432 KB
char_D.txt AC 465 ms 18564 KB
char_I.txt AC 489 ms 18436 KB
char_O.txt AC 476 ms 18564 KB
char_S.txt AC 477 ms 18440 KB
char_Z.txt AC 471 ms 18428 KB
chars_1.txt AC 491 ms 18432 KB
chars_2.txt AC 495 ms 18436 KB
chars_3.txt AC 495 ms 18432 KB
chars_4.txt AC 481 ms 18560 KB
chars_5.txt AC 480 ms 18560 KB
hand_1.txt AC 471 ms 18436 KB
hand_2.txt AC 474 ms 18564 KB
hand_3.txt AC 475 ms 18564 KB
hand_4.txt AC 476 ms 18432 KB
hand_5.txt AC 470 ms 18560 KB
num_1.txt AC 498 ms 18432 KB
num_2.txt AC 477 ms 18428 KB
num_3.txt AC 486 ms 18428 KB
random_1.txt AC 475 ms 18564 KB
random_10.txt AC 470 ms 18436 KB
random_2.txt AC 476 ms 18440 KB
random_3.txt AC 474 ms 18560 KB
random_4.txt AC 520 ms 18432 KB
random_5.txt AC 479 ms 18344 KB
random_6.txt AC 485 ms 18440 KB
random_7.txt AC 489 ms 18392 KB
random_8.txt AC 485 ms 18568 KB
random_9.txt AC 469 ms 18432 KB
sample_1.txt AC 469 ms 18556 KB
sample_2.txt AC 473 ms 18444 KB
sample_3.txt AC 526 ms 18468 KB