結果

問題 No.544 Delete 7
ユーザー tanzakutanzaku
提出日時 2017-07-14 22:53:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 622 bytes
コンパイル時間 3,887 ms
コンパイル使用メモリ 86,880 KB
実行使用メモリ 42,700 KB
最終ジャッジ日時 2024-04-16 20:28:28
合計ジャッジ時間 18,027 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 165 ms
42,324 KB
testcase_02 AC 165 ms
42,692 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 166 ms
42,296 KB
testcase_07 WA -
testcase_08 AC 162 ms
41,952 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 169 ms
42,324 KB
testcase_15 AC 162 ms
42,380 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 154 ms
42,188 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 168 ms
42,176 KB
testcase_26 WA -
testcase_27 AC 166 ms
42,352 KB
testcase_28 AC 162 ms
42,244 KB
testcase_29 AC 164 ms
42,564 KB
testcase_30 AC 167 ms
42,204 KB
testcase_31 WA -
testcase_32 AC 166 ms
42,476 KB
testcase_33 AC 163 ms
42,148 KB
testcase_34 AC 149 ms
41,932 KB
testcase_35 AC 166 ms
42,552 KB
testcase_36 WA -
testcase_37 AC 169 ms
42,196 KB
testcase_38 AC 165 ms
42,556 KB
testcase_39 AC 160 ms
42,316 KB
testcase_40 AC 159 ms
42,216 KB
testcase_41 WA -
testcase_42 AC 162 ms
42,092 KB
testcase_43 AC 161 ms
42,336 KB
testcase_44 AC 165 ms
42,696 KB
testcase_45 WA -
testcase_46 WA -
testcase_47 AC 163 ms
42,480 KB
testcase_48 AC 162 ms
42,048 KB
testcase_49 AC 166 ms
42,616 KB
testcase_50 AC 165 ms
42,208 KB
testcase_51 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #


import java.util.*;

public class No543 {

	public static void main(String[] args) {
		try (final Scanner sc = new Scanner(System.in)) {
			long n = sc.nextInt();
			Random random = new Random();
			while (true) {
				long a = random.nextInt();
				long b = n - a;
				if ((a+"").indexOf('7') < 0 && (b+"").indexOf('7') < 0) {
					System.out.println(a + " " + b);
					break;
				}
			}
		}
	}
	
	static long gcd(long n, long r) { return r == 0 ? n : gcd(r, n % r); }
	static long lcm(long n, long r) { return n/gcd(n,r)*r; }
	static void dump(Object... objects) { System.err.println(Arrays.deepToString(objects)); }
}
0