結果

問題 No.3101 砂嵐
ユーザー simansiman
提出日時 2023-04-04 21:58:34
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 16,384 KB
最終ジャッジ日時 2024-04-08 21:04:50
合計ジャッジ時間 7,752 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
16,384 KB
testcase_01 AC 86 ms
16,256 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 80 ms
16,384 KB
testcase_07 WA -
testcase_08 AC 84 ms
16,384 KB
testcase_09 WA -
testcase_10 AC 86 ms
16,384 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 83 ms
16,384 KB
testcase_15 AC 85 ms
16,384 KB
testcase_16 AC 84 ms
16,384 KB
testcase_17 AC 83 ms
16,384 KB
testcase_18 WA -
testcase_19 AC 83 ms
16,384 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 81 ms
16,384 KB
testcase_23 AC 83 ms
16,384 KB
testcase_24 AC 82 ms
16,384 KB
testcase_25 WA -
testcase_26 AC 81 ms
16,384 KB
testcase_27 AC 82 ms
16,384 KB
testcase_28 AC 85 ms
16,384 KB
testcase_29 AC 84 ms
16,384 KB
testcase_30 AC 83 ms
16,384 KB
testcase_31 WA -
testcase_32 AC 81 ms
16,384 KB
testcase_33 AC 82 ms
16,384 KB
testcase_34 AC 86 ms
16,384 KB
testcase_35 AC 82 ms
16,384 KB
testcase_36 AC 81 ms
16,384 KB
testcase_37 AC 87 ms
16,384 KB
testcase_38 WA -
testcase_39 AC 85 ms
16,384 KB
testcase_40 AC 84 ms
16,384 KB
testcase_41 AC 82 ms
16,384 KB
testcase_42 AC 83 ms
16,384 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 83 ms
16,384 KB
testcase_46 WA -
testcase_47 AC 93 ms
16,384 KB
testcase_48 WA -
testcase_49 AC 84 ms
16,384 KB
testcase_50 AC 85 ms
16,384 KB
testcase_51 AC 82 ms
16,384 KB
testcase_52 AC 83 ms
16,384 KB
testcase_53 AC 83 ms
16,256 KB
testcase_54 WA -
testcase_55 AC 84 ms
16,384 KB
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 85 ms
16,384 KB
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 AC 84 ms
16,384 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i

def f(x)
  return 0 if x < 10

  v = 1
  0.upto(Math.log10(x)) do |i|
    u = Rational(x, (10.pow(i))) % 10
    v *= u.ceil
  end

  1 + f(v)
end

puts f(N)
0