結果
| 問題 | No.3453 Crape Shop |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-28 19:40:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 876 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 16,376 KB |
| 最終ジャッジ日時 | 2026-07-25 07:16:02 |
| 合計ジャッジ時間 | 4,520 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 11 WA * 11 |
ソースコード
N = int(input()) A = list(map(int, input().split())) X = [int(x) for x in input().split()] d = False for (i, x) in enumerate(X) : for j in range(2) : A[j] -= ((x >> j) & 1) if min(A) < 0 : d = True print(i+1) if not d : print(-1)