結果

問題 No.544 Delete 7
ユーザー Mcpu3Mcpu3
提出日時 2018-06-29 16:43:41
言語 Java19
(openjdk 21)
結果
AC  
実行時間 333 ms / 1,000 ms
コード長 390 bytes
コンパイル時間 3,563 ms
コンパイル使用メモリ 73,112 KB
実行使用メモリ 58,856 KB
最終ジャッジ日時 2023-08-13 22:47:24
合計ジャッジ時間 12,929 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 150 ms
56,844 KB
testcase_01 AC 148 ms
56,776 KB
testcase_02 AC 148 ms
58,856 KB
testcase_03 AC 148 ms
56,892 KB
testcase_04 AC 150 ms
56,964 KB
testcase_05 AC 149 ms
57,056 KB
testcase_06 AC 333 ms
56,724 KB
testcase_07 AC 145 ms
56,584 KB
testcase_08 AC 147 ms
56,604 KB
testcase_09 AC 149 ms
56,968 KB
testcase_10 AC 152 ms
56,532 KB
testcase_11 AC 147 ms
56,732 KB
testcase_12 AC 148 ms
56,496 KB
testcase_13 AC 148 ms
56,604 KB
testcase_14 AC 146 ms
56,856 KB
testcase_15 AC 151 ms
56,740 KB
testcase_16 AC 148 ms
56,832 KB
testcase_17 AC 147 ms
56,612 KB
testcase_18 AC 148 ms
56,868 KB
testcase_19 AC 147 ms
56,592 KB
testcase_20 AC 151 ms
56,936 KB
testcase_21 AC 149 ms
57,144 KB
testcase_22 AC 148 ms
56,588 KB
testcase_23 AC 147 ms
56,724 KB
testcase_24 AC 148 ms
56,876 KB
testcase_25 AC 150 ms
56,776 KB
testcase_26 AC 149 ms
56,952 KB
testcase_27 AC 146 ms
56,424 KB
testcase_28 AC 149 ms
56,632 KB
testcase_29 AC 147 ms
56,784 KB
testcase_30 AC 149 ms
56,940 KB
testcase_31 AC 147 ms
56,684 KB
testcase_32 AC 148 ms
56,796 KB
testcase_33 AC 155 ms
56,788 KB
testcase_34 AC 152 ms
57,284 KB
testcase_35 AC 155 ms
56,916 KB
testcase_36 AC 148 ms
56,736 KB
testcase_37 AC 155 ms
58,584 KB
testcase_38 AC 146 ms
57,020 KB
testcase_39 AC 173 ms
56,816 KB
testcase_40 AC 165 ms
56,804 KB
testcase_41 AC 148 ms
56,856 KB
testcase_42 AC 148 ms
56,900 KB
testcase_43 AC 148 ms
56,816 KB
testcase_44 AC 148 ms
56,908 KB
testcase_45 AC 244 ms
56,828 KB
testcase_46 AC 275 ms
56,684 KB
testcase_47 AC 155 ms
56,900 KB
testcase_48 AC 154 ms
56,736 KB
testcase_49 AC 173 ms
57,052 KB
testcase_50 AC 159 ms
56,904 KB
testcase_51 AC 175 ms
56,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no544{
	public static void main(String[] args) { 
		Scanner stdIn=new Scanner(System.in);
		int n=stdIn.nextInt(),i,a,b,t=1;
		for(i=1;t!=0;i+=17) {
			a=i;
			b=n-i;
			t=0;
			do {
				if(a%10==7) t++;
				a/=10;
			}while(a!=0);
			do {
				if(b%10==7) t++;
				b/=10;
			}while(b!=0);
		}
		System.out.print(i-17+" "+(n-i+17));
	}
}
0