結果

問題 No.744 循環小数N桁目 Easy
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-10-19 21:25:46
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 301 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 10,074 ms
コンパイル使用メモリ 422,324 KB
実行使用メモリ 54,268 KB
最終ジャッジ日時 2024-04-30 19:29:00
合計ジャッジ時間 13,975 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 298 ms
54,216 KB
testcase_01 AC 293 ms
54,220 KB
testcase_02 AC 295 ms
54,268 KB
testcase_03 AC 290 ms
54,176 KB
testcase_04 AC 290 ms
54,224 KB
testcase_05 AC 292 ms
54,224 KB
testcase_06 AC 292 ms
54,084 KB
testcase_07 AC 290 ms
54,216 KB
testcase_08 AC 294 ms
54,136 KB
testcase_09 AC 301 ms
54,168 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
	val n = readLine()!!.toInt()

	val str = "285714"
	println(str[(n - 1) % str.length])
}
0