結果
| 問題 |
No.2401 Dirty Shoes and Stairs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-04 21:33:07 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 192 ms / 2,000 ms |
| コード長 | 296 bytes |
| コンパイル時間 | 166 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 30,388 KB |
| 最終ジャッジ日時 | 2024-10-14 19:31:58 |
| 合計ジャッジ時間 | 3,235 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
import itertools N = int(input()) M1 = int(input()) A = [int(x) for x in input().split()] M2 = int(input()) B = [int(x) for x in input().split()] clean = set(range(N)) for i in itertools.accumulate(A): clean.discard(i) for i in itertools.accumulate(B): clean.discard(N - i) print(len(clean))