結果
問題 |
No.1738 What's in the box?
|
ユーザー |
![]() |
提出日時 | 2021-11-12 21:30:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 649 ms |
コンパイル使用メモリ | 63,424 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 12:12:27 |
合計ジャッジ時間 | 2,451 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 68 RE * 2 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; int main() { int n; ll m; cin >> n >> m; ll s = 0; ll w[1004]; for(int i = 0; i < n; i++){ cin >> w[i]; s += w[i]; } for(int i = 0; i < n; i++) cout << m * w[i] / s << " "; cout << endl; }