結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-01-18 00:10:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| コンパイル時間 | 743 ms |
| コンパイル使用メモリ | 68,980 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-23 13:02:54 |
| 合計ジャッジ時間 | 3,246 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 68 RE * 2 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
long long n,k;cin>>n>>k;
vector<long long> A(n);
long long sm = 0;
for(int i = 0; n > i; i++){
cin>>A[i];
sm += A[i];
}
for(int i = 0; n > i; i++){
cout << k/sm*A[i];
if(i+1 != n)cout << " ";
}
cout << endl;
}