結果

問題 No.1738 What's in the box?
ユーザー lanegue
提出日時 2021-11-12 22:21:46
言語 D
(dmd 2.109.1)
結果
RE  
実行時間 -
コード長 196 bytes
コンパイル時間 1,459 ms
コンパイル使用メモリ 175,536 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-22 13:16:23
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 68 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;
void main(){
	auto s=readln.split.to!(long[]);
	auto N=s[0];
	auto M=s[1];
	auto W=readln.split.to!(long[]);
	auto w=W.sum;
	writeln(W.map!(x=>x*M/w).array.to!(string[]).join(" "));
}
0