結果

問題 No.544 Delete 7
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-07-14 23:05:38
言語 Java19
(openjdk 21)
結果
AC  
実行時間 155 ms / 1,000 ms
コード長 349 bytes
コンパイル時間 2,345 ms
コンパイル使用メモリ 73,860 KB
実行使用メモリ 57,228 KB
最終ジャッジ日時 2023-08-13 22:08:37
合計ジャッジ時間 13,343 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
56,816 KB
testcase_01 AC 149 ms
56,824 KB
testcase_02 AC 150 ms
57,028 KB
testcase_03 AC 150 ms
56,992 KB
testcase_04 AC 150 ms
56,688 KB
testcase_05 AC 148 ms
56,940 KB
testcase_06 AC 154 ms
56,828 KB
testcase_07 AC 148 ms
56,748 KB
testcase_08 AC 147 ms
56,764 KB
testcase_09 AC 150 ms
57,044 KB
testcase_10 AC 148 ms
56,808 KB
testcase_11 AC 148 ms
56,908 KB
testcase_12 AC 149 ms
54,900 KB
testcase_13 AC 148 ms
56,824 KB
testcase_14 AC 150 ms
57,072 KB
testcase_15 AC 150 ms
56,748 KB
testcase_16 AC 149 ms
57,124 KB
testcase_17 AC 149 ms
56,928 KB
testcase_18 AC 149 ms
56,512 KB
testcase_19 AC 149 ms
56,668 KB
testcase_20 AC 148 ms
56,648 KB
testcase_21 AC 151 ms
56,556 KB
testcase_22 AC 148 ms
56,748 KB
testcase_23 AC 148 ms
57,128 KB
testcase_24 AC 148 ms
57,228 KB
testcase_25 AC 150 ms
56,796 KB
testcase_26 AC 151 ms
56,776 KB
testcase_27 AC 153 ms
56,632 KB
testcase_28 AC 151 ms
57,024 KB
testcase_29 AC 148 ms
56,860 KB
testcase_30 AC 148 ms
56,800 KB
testcase_31 AC 152 ms
56,716 KB
testcase_32 AC 151 ms
56,760 KB
testcase_33 AC 152 ms
56,880 KB
testcase_34 AC 148 ms
56,892 KB
testcase_35 AC 149 ms
56,988 KB
testcase_36 AC 148 ms
57,084 KB
testcase_37 AC 147 ms
56,880 KB
testcase_38 AC 150 ms
56,872 KB
testcase_39 AC 148 ms
56,792 KB
testcase_40 AC 145 ms
57,108 KB
testcase_41 AC 151 ms
56,864 KB
testcase_42 AC 151 ms
56,932 KB
testcase_43 AC 149 ms
56,860 KB
testcase_44 AC 149 ms
56,808 KB
testcase_45 AC 149 ms
57,152 KB
testcase_46 AC 153 ms
56,684 KB
testcase_47 AC 151 ms
56,756 KB
testcase_48 AC 155 ms
57,008 KB
testcase_49 AC 151 ms
56,848 KB
testcase_50 AC 148 ms
56,816 KB
testcase_51 AC 149 ms
56,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int M = 0;
        for(int i=0; i<=9; i++){
            int p = (int)Math.pow(10,i);
            if((N%(10*p))/p==7)M+=p;
        }
        System.out.println((N-M)+" "+M);
    }
}
0