結果
問題 | No.2401 Dirty Shoes and Stairs |
ユーザー |
|
提出日時 | 2023-08-04 21:48:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 107 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 82,500 KB |
実行使用メモリ | 111,872 KB |
最終ジャッジ日時 | 2024-10-14 19:44:56 |
合計ジャッジ時間 | 3,022 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
n = int(input()) m1 = int(input()) used = [1]*(n+1) now = 0 for a in list(map(int,input().split())): now += a used[now] = 0 m2 = int(input()) for a in list(map(int,input().split())): now -= a used[now] = 0 print(sum(used))