結果

問題 No.544 Delete 7
ユーザー tentententen
提出日時 2020-10-14 09:33:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 435 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 73,044 KB
実行使用メモリ 57,248 KB
最終ジャッジ日時 2023-09-28 00:30:42
合計ジャッジ時間 12,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,684 KB
testcase_01 AC 124 ms
56,980 KB
testcase_02 AC 129 ms
57,000 KB
testcase_03 AC 129 ms
56,760 KB
testcase_04 AC 127 ms
56,904 KB
testcase_05 AC 126 ms
56,748 KB
testcase_06 AC 124 ms
56,612 KB
testcase_07 AC 129 ms
57,068 KB
testcase_08 AC 127 ms
56,976 KB
testcase_09 AC 125 ms
56,496 KB
testcase_10 AC 125 ms
56,932 KB
testcase_11 AC 128 ms
56,432 KB
testcase_12 AC 132 ms
56,496 KB
testcase_13 AC 125 ms
56,496 KB
testcase_14 AC 127 ms
56,604 KB
testcase_15 AC 126 ms
56,708 KB
testcase_16 AC 128 ms
56,676 KB
testcase_17 AC 126 ms
56,436 KB
testcase_18 AC 126 ms
56,592 KB
testcase_19 AC 124 ms
56,628 KB
testcase_20 AC 125 ms
57,120 KB
testcase_21 AC 127 ms
56,616 KB
testcase_22 AC 127 ms
56,912 KB
testcase_23 AC 126 ms
56,732 KB
testcase_24 AC 130 ms
56,608 KB
testcase_25 AC 126 ms
56,828 KB
testcase_26 AC 138 ms
56,896 KB
testcase_27 AC 138 ms
56,692 KB
testcase_28 AC 124 ms
56,616 KB
testcase_29 AC 124 ms
54,500 KB
testcase_30 AC 124 ms
57,248 KB
testcase_31 AC 124 ms
56,776 KB
testcase_32 AC 125 ms
56,572 KB
testcase_33 AC 126 ms
56,768 KB
testcase_34 AC 124 ms
56,424 KB
testcase_35 AC 121 ms
56,732 KB
testcase_36 AC 128 ms
56,952 KB
testcase_37 AC 129 ms
56,684 KB
testcase_38 AC 125 ms
56,692 KB
testcase_39 AC 131 ms
56,556 KB
testcase_40 AC 126 ms
56,768 KB
testcase_41 AC 124 ms
56,668 KB
testcase_42 AC 126 ms
56,776 KB
testcase_43 AC 135 ms
56,532 KB
testcase_44 AC 132 ms
54,872 KB
testcase_45 AC 126 ms
54,816 KB
testcase_46 AC 133 ms
56,512 KB
testcase_47 AC 127 ms
56,620 KB
testcase_48 AC 131 ms
56,612 KB
testcase_49 AC 131 ms
56,500 KB
testcase_50 AC 130 ms
56,628 KB
testcase_51 AC 127 ms
56,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
    	Scanner sc = new Scanner(System.in);
    	char[] arr = sc.next().toCharArray();
    	int a = 0;
    	int b = 0;
    	for (char c : arr) {
    	    a *= 10;
    	    b *= 10;
    	    if (c == '7') {
    	        a += 1;
    	        b += 6;
    	    } else {
    	        a += c - '0';
    	    }
    	}
    	System.out.println(a + " " + b);
	}
}
0