結果
問題 |
No.1738 What's in the box?
|
ユーザー |
![]() |
提出日時 | 2025-07-03 03:02:29 |
言語 | Go (1.23.4) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 13,158 ms |
コンパイル使用メモリ | 249,796 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-07-03 03:02:45 |
合計ジャッジ時間 | 15,940 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 68 WA * 2 |
ソースコード
package main import . "fmt" func main() { var n, m int Scan(&n, &m) ws := make([]int, n) sum := 0 for i := range ws { Scan(&ws[i]) sum += ws[i] } ans := make([]any, n) if sum > 0 { for i, w := range ws { ans[i] = w*m/sum } } Println(ans...) }