結果
| 問題 |
No.1738 What's in the box?
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-13 00:28:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 621 bytes |
| コンパイル時間 | 312 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 63,616 KB |
| 最終ジャッジ日時 | 2024-11-26 01:36:15 |
| 合計ジャッジ時間 | 6,480 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 70 |
ソースコード
# import sys
# input = sys.stdin.readline
def mp():return map(int,input().split())
def lmp():return list(map(int,input().split()))
def mps(A):return [tuple(map(int, input().split())) for _ in range(A)]
import math
import bisect
import heapq
from copy import deepcopy as dc
from itertools import accumulate
from collections import Counter, defaultdict, deque
def ceil(U,V):return (U+V-1)//V
def modf1(N,MOD):return (N-1)%MOD+1
inf = int(1e20)
mod = int(1e9+7)
import time
import copy
n,m = mp()
w = lmp()
s = sum(w)
if s == 0:
print(*[0]*n)
exit()
ans = []
for i in range(n):
ans.append(m*w[i]//s)
print(*ans)