結果

問題 No.744 循環小数N桁目 Easy
ユーザー Mcpu3Mcpu3
提出日時 2018-10-19 23:12:36
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 2,512 ms
コンパイル使用メモリ 74,728 KB
実行使用メモリ 41,344 KB
最終ジャッジ日時 2024-11-18 22:24:52
合計ジャッジ時間 4,632 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

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