結果
| 問題 | No.1987 Sandglass Inconvenience |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 22:24:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 489 bytes |
| 記録 | |
| コンパイル時間 | 598 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-08 20:25:18 |
| 合計ジャッジ時間 | 4,062 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 WA * 6 |
ソースコード
from itertools import product
L = list(map(int, input().split()))
x = int(input())
for P in product(range(3), repeat=3):
LL = []
for i in range(3):
LL.append(L[P[i]])
for bit in range(3**3):
Q = []
bitc = bit
for i in range(3):
Q.append(bitc % 3 - 1)
bitc //= 3
res = 0
for i in range(3):
res += Q[i] * LL[i]
if abs(res) == x:
print("Yes")
exit()
print("No")