結果
問題 | No.602 隠されていたゲーム2 |
ユーザー |
|
提出日時 | 2021-12-01 10:58:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 420 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,640 KB |
最終ジャッジ日時 | 2024-07-04 10:15:44 |
合計ジャッジ時間 | 1,980 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 19 |
ソースコード
import sys readline = sys.stdin.readline n = int(input()) d_arr = list(map(int, readline().split())) d_even = [] d_odd = [] for d in d_arr: if d % 2 == 0: d_even.append(d) else: d_odd.append(d) d_even.sort() d_odd.sort() x, y = map(lambda n: abs(int(n)), input().split()) if x == 0 and y == 0: print(0) sys.exit() for d in d_arr: if d == x + y: print(1) sys.exit()