結果
| 問題 |
No.2401 Dirty Shoes and Stairs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-16 22:27:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 82,196 KB |
| 実行使用メモリ | 127,600 KB |
| 最終ジャッジ日時 | 2024-08-16 22:27:24 |
| 合計ジャッジ時間 | 3,603 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 22 |
ソースコード
from itertools import accumulate N = int(input()) M = int(input()) A = list(map(int, input().split())) L = int(input()) B = list(map(int, input().split())) S = set(accumulate(A, initial=0)) T = set(accumulate(B, initial=0)) U = S | T print(N + 1 - len(U))