結果

問題 No.544 Delete 7
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-06-19 23:35:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 153 ms / 1,000 ms
コード長 374 bytes
コンパイル時間 3,482 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 57,300 KB
最終ジャッジ日時 2023-08-13 22:46:36
合計ジャッジ時間 13,994 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
57,008 KB
testcase_01 AC 147 ms
56,880 KB
testcase_02 AC 150 ms
57,168 KB
testcase_03 AC 150 ms
56,992 KB
testcase_04 AC 150 ms
56,924 KB
testcase_05 AC 150 ms
56,624 KB
testcase_06 AC 149 ms
56,872 KB
testcase_07 AC 150 ms
56,840 KB
testcase_08 AC 149 ms
56,584 KB
testcase_09 AC 152 ms
56,892 KB
testcase_10 AC 149 ms
56,612 KB
testcase_11 AC 148 ms
57,092 KB
testcase_12 AC 149 ms
56,868 KB
testcase_13 AC 149 ms
57,092 KB
testcase_14 AC 149 ms
57,060 KB
testcase_15 AC 150 ms
57,300 KB
testcase_16 AC 148 ms
56,892 KB
testcase_17 AC 150 ms
56,808 KB
testcase_18 AC 149 ms
56,932 KB
testcase_19 AC 150 ms
57,012 KB
testcase_20 AC 149 ms
56,940 KB
testcase_21 AC 151 ms
57,168 KB
testcase_22 AC 149 ms
56,840 KB
testcase_23 AC 149 ms
56,880 KB
testcase_24 AC 152 ms
56,888 KB
testcase_25 AC 151 ms
56,724 KB
testcase_26 AC 149 ms
56,864 KB
testcase_27 AC 149 ms
56,568 KB
testcase_28 AC 150 ms
57,088 KB
testcase_29 AC 149 ms
57,068 KB
testcase_30 AC 147 ms
56,728 KB
testcase_31 AC 148 ms
56,780 KB
testcase_32 AC 150 ms
57,116 KB
testcase_33 AC 149 ms
56,876 KB
testcase_34 AC 150 ms
56,880 KB
testcase_35 AC 150 ms
56,880 KB
testcase_36 AC 150 ms
56,672 KB
testcase_37 AC 150 ms
56,988 KB
testcase_38 AC 149 ms
56,816 KB
testcase_39 AC 148 ms
56,908 KB
testcase_40 AC 149 ms
56,708 KB
testcase_41 AC 150 ms
56,752 KB
testcase_42 AC 150 ms
56,856 KB
testcase_43 AC 153 ms
57,060 KB
testcase_44 AC 150 ms
56,852 KB
testcase_45 AC 150 ms
56,848 KB
testcase_46 AC 153 ms
57,220 KB
testcase_47 AC 150 ms
57,104 KB
testcase_48 AC 149 ms
56,596 KB
testcase_49 AC 149 ms
56,888 KB
testcase_50 AC 149 ms
57,036 KB
testcase_51 AC 151 ms
57,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

		int N = sc.nextInt();
		int a = 0, b = 0;
		int N_ = N;
		for(int i = 9; i >= 0; i--){
			int div = N_/(int)Math.pow(10, i);
			if(div == 7) a += Math.pow(10, i);
			N_ -= div*Math.pow(10, i);
		}
		b = N - a;
		System.out.println(a + " " + b);
	}
}
0