結果

問題 No.744 循環小数N桁目 Easy
ユーザー object1234object1234
提出日時 2019-01-22 22:59:21
言語 Ruby
(3.2.2)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 84 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 15,284 KB
最終ジャッジ日時 2023-10-14 09:19:35
合計ジャッジ時間 1,712 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,036 KB
testcase_01 AC 80 ms
15,176 KB
testcase_02 AC 81 ms
15,224 KB
testcase_03 AC 82 ms
15,148 KB
testcase_04 AC 81 ms
15,064 KB
testcase_05 AC 81 ms
15,240 KB
testcase_06 AC 81 ms
15,284 KB
testcase_07 AC 81 ms
15,264 KB
testcase_08 AC 81 ms
15,072 KB
testcase_09 AC 81 ms
15,072 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

strs = "285714".split("")
n = gets.chomp.to_i
n = n % 6 if n > 6
n -= 1
puts strs[n]
0