結果
| 問題 |
No.476 正しくない平均
|
| コンテスト | |
| ユーザー |
rocoder
|
| 提出日時 | 2017-06-03 07:32:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 194 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-22 04:09:30 |
| 合計ジャッジ時間 | 2,035 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 20 WA * 6 |
ソースコード
#wrong average
n,a=(i for i in input().split())
n=int(n)
a=float(a)
x=[int(i) for i in input ().split()]
S=0
for i in range(n):
S+=x[i]
if a ==S//n:
print("YES")
else:
print("NO")
rocoder