結果

問題 No.1738 What's in the box?
ユーザー 小野寺健小野寺健
提出日時 2021-11-13 17:35:01
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-05-05 16:28:25
合計ジャッジ時間 7,370 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N, M = gets.split(" ").map{|s| s.to_i}
W = gets.split(" ").map{|s| s.to_i}

ball = W.sum.to_f / M.to_f

ans = []
W.each{|w|
	ans << (w.to_f / ball).to_i
}

puts ans.map{|i| i.to_s}.join(" ")
0