結果

問題 No.744 循環小数N桁目 Easy
ユーザー sayuen0sayuen0
提出日時 2019-01-04 17:36:22
言語 Ruby
(3.3.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 108 bytes
コンパイル時間 618 ms
コンパイル使用メモリ 11,204 KB
実行使用メモリ 113,144 KB
最終ジャッジ日時 2023-08-15 15:30:32
合計ジャッジ時間 5,028 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,268 KB
testcase_01 AC 78 ms
15,000 KB
testcase_02 AC 81 ms
15,100 KB
testcase_03 AC 80 ms
15,164 KB
testcase_04 AC 82 ms
15,600 KB
testcase_05 AC 78 ms
15,216 KB
testcase_06 AC 101 ms
16,120 KB
testcase_07 AC 374 ms
28,604 KB
testcase_08 AC 981 ms
55,908 KB
testcase_09 TLE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i

fracStr = ""

k = n < 6 ? 1 : n/6+1
k.times do 
  fracStr << "285714"
end

puts fracStr[n-1]
0