結果

問題 No.744 循環小数N桁目 Easy
ユーザー Mcpu3Mcpu3
提出日時 2018-10-19 23:12:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 2,140 ms
コンパイル使用メモリ 73,908 KB
実行使用メモリ 41,392 KB
最終ジャッジ日時 2024-04-29 16:56:16
合計ジャッジ時間 4,165 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,032 KB
testcase_01 AC 128 ms
41,392 KB
testcase_02 AC 130 ms
41,152 KB
testcase_03 AC 132 ms
40,920 KB
testcase_04 AC 124 ms
39,772 KB
testcase_05 AC 130 ms
41,216 KB
testcase_06 AC 130 ms
41,288 KB
testcase_07 AC 127 ms
41,168 KB
testcase_08 AC 130 ms
41,092 KB
testcase_09 AC 132 ms
41,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		String tmp = "285714";
		System.out.print(tmp.charAt((N - 1) % 6));
	}
}
0