結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2022-01-04 16:35:43 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 127 bytes |
| コンパイル時間 | 222 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-10-14 11:44:29 |
| 合計ジャッジ時間 | 8,453 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 68 RE * 2 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n, m = gets.chomp.split.map(&:to_i)
w = gets.chomp.split.map(&:to_i)
tot = w.sum
puts w.map{|v| (m.quo(tot)*v).to_i}.join(' ')
neko_the_shadow