結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
momoyuu
|
| 提出日時 | 2023-03-16 02:42:17 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 2,523 ms |
| コンパイル使用メモリ | 247,056 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-18 09:07:47 |
| 合計ジャッジ時間 | 4,660 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 68 RE * 2 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ll n,m;
cin>>n>>m;
ll sum = 0;
vector<ll> w(n);
for(int i = 0;i<n;i++){
cin >> w[i];
sum += w[i];
}
for(int i = 0;i<n;i++){
if(i!=0) cout<<" ";
cout<<(w[i]*m)/sum;
}
return 0;
}
momoyuu