結果

問題 No.744 循環小数N桁目 Easy
ユーザー kazukikazuki
提出日時 2018-11-17 21:56:45
言語 Ruby
(3.3.0)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 451 ms
コンパイル使用メモリ 11,168 KB
実行使用メモリ 15,344 KB
最終ジャッジ日時 2023-08-26 01:47:34
合計ジャッジ時間 2,382 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,132 KB
testcase_01 AC 68 ms
14,988 KB
testcase_02 AC 67 ms
15,344 KB
testcase_03 AC 67 ms
15,024 KB
testcase_04 AC 69 ms
15,232 KB
testcase_05 AC 67 ms
15,272 KB
testcase_06 AC 69 ms
15,268 KB
testcase_07 AC 68 ms
15,064 KB
testcase_08 AC 68 ms
15,084 KB
testcase_09 AC 69 ms
15,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i

n_fixed = 6 - n % 6

puts 285714 / 10**n_fixed % 10

#puts 4 / 2
#puts 2**3
#puts 16 / 2**3




0