結果
問題 | No.836 じょうよ |
ユーザー | wonda_t_coffee |
提出日時 | 2020-02-08 13:22:47 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 164 bytes |
コンパイル時間 | 101 ms |
コンパイル使用メモリ | 12,012 KB |
実行使用メモリ | 17,044 KB |
最終ジャッジ日時 | 2023-10-26 00:49:53 |
合計ジャッジ時間 | 4,913 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | RE | - |
testcase_01 | AC | 84 ms
16,220 KB |
testcase_02 | AC | 86 ms
16,220 KB |
testcase_03 | RE | - |
testcase_04 | AC | 82 ms
16,220 KB |
testcase_05 | AC | 83 ms
16,220 KB |
testcase_06 | RE | - |
testcase_07 | AC | 78 ms
16,220 KB |
testcase_08 | AC | 77 ms
16,220 KB |
testcase_09 | RE | - |
testcase_10 | AC | 77 ms
16,220 KB |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | AC | 145 ms
16,876 KB |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | AC | 82 ms
16,220 KB |
testcase_22 | AC | 98 ms
16,592 KB |
testcase_23 | AC | 129 ms
16,912 KB |
testcase_24 | AC | 88 ms
16,220 KB |
testcase_25 | AC | 100 ms
16,524 KB |
testcase_26 | RE | - |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | RE | - |
testcase_30 | RE | - |
testcase_31 | RE | - |
testcase_32 | RE | - |
testcase_33 | RE | - |
testcase_34 | RE | - |
testcase_35 | RE | - |
testcase_36 | RE | - |
testcase_37 | RE | - |
testcase_38 | RE | - |
testcase_39 | RE | - |
testcase_40 | RE | - |
コンパイルメッセージ
Syntax OK
ソースコード
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] += 1 end puts ans end