結果
問題 |
No.2401 Dirty Shoes and Stairs
|
ユーザー |
|
提出日時 | 2023-07-13 19:42:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 2,000 ms |
コード長 | 288 bytes |
コンパイル時間 | 438 ms |
コンパイル使用メモリ | 82,136 KB |
実行使用メモリ | 117,076 KB |
最終ジャッジ日時 | 2024-09-15 05:49:29 |
合計ジャッジ時間 | 3,463 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
n=int(input()) m1=int(input()) a=list(map(int,input().split())) m2=int(input()) b=list(map(int,input().split())) skipped=[True for i in range(n+1)] cur=0 for i in range(m1): cur+=a[i] skipped[cur]=False for i in range(m2): cur-=b[i] skipped[cur]=False print(sum(skipped))