結果

問題 No.746 7の倍数
ユーザー hhgfhn1hhgfhn1
提出日時 2018-10-20 00:20:27
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 345 bytes
コンパイル時間 2,163 ms
コンパイル使用メモリ 77,376 KB
実行使用メモリ 52,756 KB
最終ジャッジ日時 2024-04-29 17:39:56
合計ジャッジ時間 10,205 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 103 ms
40,028 KB
testcase_02 AC 119 ms
41,156 KB
testcase_03 AC 449 ms
52,756 KB
testcase_04 AC 153 ms
41,100 KB
testcase_05 AC 232 ms
43,832 KB
testcase_06 AC 339 ms
52,192 KB
testcase_07 AC 308 ms
51,164 KB
testcase_08 AC 343 ms
52,352 KB
testcase_09 AC 312 ms
51,272 KB
testcase_10 AC 232 ms
46,436 KB
testcase_11 AC 444 ms
52,280 KB
testcase_12 AC 517 ms
52,680 KB
testcase_13 AC 395 ms
52,412 KB
testcase_14 AC 426 ms
52,500 KB
testcase_15 AC 405 ms
49,484 KB
testcase_16 AC 419 ms
52,740 KB
testcase_17 AC 396 ms
52,444 KB
testcase_18 AC 407 ms
52,448 KB
testcase_19 AC 383 ms
52,740 KB
testcase_20 AC 295 ms
50,692 KB
testcase_21 AC 256 ms
49,340 KB
testcase_22 AC 423 ms
49,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int n=scanner.nextInt();
		int a[]={1,4,2,8,5,7};
		System.out.print("0.");
		for(int i=0;i<n;i++){
			System.out.print(String.valueOf(a[i%6]));
		}
		System.out.println();
	}
}
0