結果

問題 No.744 循環小数N桁目 Easy
ユーザー toshiro_yanagitoshiro_yanagi
提出日時 2018-10-19 21:25:46
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 267 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 10,958 ms
コンパイル使用メモリ 409,740 KB
実行使用メモリ 52,156 KB
最終ジャッジ日時 2023-08-13 00:51:18
合計ジャッジ時間 15,131 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 265 ms
50,092 KB
testcase_01 AC 262 ms
50,004 KB
testcase_02 AC 267 ms
49,980 KB
testcase_03 AC 267 ms
50,088 KB
testcase_04 AC 263 ms
50,228 KB
testcase_05 AC 261 ms
50,128 KB
testcase_06 AC 265 ms
49,988 KB
testcase_07 AC 267 ms
51,988 KB
testcase_08 AC 267 ms
52,156 KB
testcase_09 AC 264 ms
50,120 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