結果

問題 No.836 じょうよ
ユーザー wonda_t_coffeewonda_t_coffee
提出日時 2020-02-08 13:23:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 144 ms / 1,000 ms
コード長 170 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 11,972 KB
実行使用メモリ 17,084 KB
最終ジャッジ日時 2023-10-26 00:50:02
合計ジャッジ時間 5,690 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
16,844 KB
testcase_01 AC 83 ms
16,220 KB
testcase_02 AC 88 ms
16,220 KB
testcase_03 AC 81 ms
16,220 KB
testcase_04 AC 84 ms
16,220 KB
testcase_05 AC 82 ms
16,220 KB
testcase_06 AC 82 ms
16,220 KB
testcase_07 AC 82 ms
16,220 KB
testcase_08 AC 82 ms
16,220 KB
testcase_09 AC 82 ms
16,216 KB
testcase_10 AC 82 ms
16,220 KB
testcase_11 AC 87 ms
16,376 KB
testcase_12 AC 92 ms
16,400 KB
testcase_13 AC 90 ms
16,372 KB
testcase_14 AC 85 ms
16,220 KB
testcase_15 AC 90 ms
16,384 KB
testcase_16 AC 143 ms
16,876 KB
testcase_17 AC 139 ms
16,824 KB
testcase_18 AC 87 ms
16,364 KB
testcase_19 AC 95 ms
16,420 KB
testcase_20 AC 118 ms
16,628 KB
testcase_21 AC 85 ms
16,220 KB
testcase_22 AC 106 ms
16,592 KB
testcase_23 AC 134 ms
16,912 KB
testcase_24 AC 88 ms
16,220 KB
testcase_25 AC 102 ms
16,524 KB
testcase_26 AC 86 ms
16,220 KB
testcase_27 AC 87 ms
16,220 KB
testcase_28 AC 92 ms
16,376 KB
testcase_29 AC 86 ms
16,220 KB
testcase_30 AC 84 ms
16,220 KB
testcase_31 AC 89 ms
16,388 KB
testcase_32 AC 90 ms
16,380 KB
testcase_33 AC 86 ms
16,220 KB
testcase_34 AC 91 ms
16,376 KB
testcase_35 AC 89 ms
16,380 KB
testcase_36 AC 110 ms
16,664 KB
testcase_37 AC 109 ms
16,640 KB
testcase_38 AC 120 ms
16,788 KB
testcase_39 AC 114 ms
16,708 KB
testcase_40 AC 144 ms
17,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l, r, n = gets.chomp.split.map(&:to_i)
v = r - l + 1
ans = [v / n] * n
if v % n == 0
  puts ans
else
  (v % n).times do |i|
    ans[(l + i) % n] += 1
  end
  puts ans
end
0