結果
| 問題 | No.3453 Crape Shop |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-02-28 19:40:25 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 674 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 16,732 KB |
| 最終ジャッジ日時 | 2026-02-28 19:40:32 |
| 合計ジャッジ時間 | 6,491 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)