結果
| 問題 | No.1738 What's in the box? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-18 00:10:51 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 350 bytes |
| 記録 | |
| コンパイル時間 | 597 ms |
| コンパイル使用メモリ | 78,688 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-17 06:13:21 |
| 合計ジャッジ時間 | 3,579 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}