結果

問題 No.744 循環小数N桁目 Easy
ユーザー hhgfhn1hhgfhn1
提出日時 2018-10-19 21:29:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 1,801 ms
コンパイル使用メモリ 73,888 KB
実行使用メモリ 41,300 KB
最終ジャッジ日時 2024-04-29 15:22:06
合計ジャッジ時間 3,520 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
39,992 KB
testcase_01 AC 119 ms
41,160 KB
testcase_02 AC 114 ms
41,176 KB
testcase_03 AC 118 ms
41,200 KB
testcase_04 AC 114 ms
41,220 KB
testcase_05 AC 102 ms
40,288 KB
testcase_06 AC 119 ms
40,972 KB
testcase_07 AC 115 ms
41,060 KB
testcase_08 AC 119 ms
41,000 KB
testcase_09 AC 117 ms
41,300 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[]={2,8,5,7,1,4};
		System.out.println(a[(n-1)%6]);
	}
}

0