結果

問題 No.544 Delete 7
ユーザー tanzakutanzaku
提出日時 2017-07-14 22:51:36
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 623 bytes
コンパイル時間 3,451 ms
コンパイル使用メモリ 77,560 KB
実行使用メモリ 55,320 KB
最終ジャッジ日時 2024-04-16 20:27:54
合計ジャッジ時間 14,280 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
42,288 KB
testcase_01 AC 148 ms
42,508 KB
testcase_02 WA -
testcase_03 AC 152 ms
42,824 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 151 ms
42,628 KB
testcase_07 AC 155 ms
42,288 KB
testcase_08 AC 148 ms
42,324 KB
testcase_09 AC 149 ms
42,560 KB
testcase_10 AC 147 ms
42,544 KB
testcase_11 AC 149 ms
42,312 KB
testcase_12 AC 154 ms
42,192 KB
testcase_13 WA -
testcase_14 AC 156 ms
42,608 KB
testcase_15 AC 157 ms
42,632 KB
testcase_16 AC 156 ms
42,712 KB
testcase_17 AC 138 ms
42,656 KB
testcase_18 AC 150 ms
42,428 KB
testcase_19 AC 148 ms
42,272 KB
testcase_20 AC 147 ms
42,648 KB
testcase_21 AC 139 ms
42,540 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 155 ms
42,472 KB
testcase_25 AC 152 ms
42,428 KB
testcase_26 WA -
testcase_27 AC 153 ms
42,692 KB
testcase_28 AC 162 ms
42,468 KB
testcase_29 AC 151 ms
42,068 KB
testcase_30 AC 152 ms
42,684 KB
testcase_31 AC 147 ms
42,600 KB
testcase_32 AC 154 ms
42,340 KB
testcase_33 AC 148 ms
42,556 KB
testcase_34 AC 149 ms
42,336 KB
testcase_35 AC 148 ms
42,476 KB
testcase_36 AC 149 ms
42,448 KB
testcase_37 WA -
testcase_38 AC 161 ms
42,692 KB
testcase_39 AC 145 ms
42,340 KB
testcase_40 WA -
testcase_41 AC 150 ms
42,328 KB
testcase_42 AC 152 ms
42,784 KB
testcase_43 AC 154 ms
42,528 KB
testcase_44 AC 156 ms
42,448 KB
testcase_45 AC 145 ms
42,724 KB
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 152 ms
42,696 KB
testcase_50 AC 151 ms
42,560 KB
testcase_51 AC 148 ms
42,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


import java.util.*;

public class No545 {

	public static void main(String[] args) {
		try (final Scanner sc = new Scanner(System.in)) {
			int n = sc.nextInt();
			Random random = new Random();
			while (true) {
				int a = random.nextInt() / 2;
				int 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