結果
| 問題 |
No.1987 Sandglass Inconvenience
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 21:40:24 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 428 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-08 17:34:39 |
| 合計ジャッジ時間 | 1,734 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 6 |
ソースコード
L = list(map(int, input().split()))
x = int(input())
L.sort()
for bit in range(3**3):
P = []
bitc = bit
for i in range(3):
if bitc % 3 == 0:
P.append(0)
elif bitc % 3 == 1:
P.append(1)
else:
P.append(-1)
bitc //= 3
res = 0
for i in range(3):
res += P[i] * L[i]
if abs(res) == x:
print("Yes")
exit()
print("No")