結果
| 問題 |
No.2401 Dirty Shoes and Stairs
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2023-08-04 21:22:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 2,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 129,832 KB |
| 最終ジャッジ日時 | 2024-10-14 19:11:47 |
| 合計ジャッジ時間 | 2,838 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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())) r = set() tmp = 0 r.add(0) for i in range(m1): tmp += a[i] r.add(tmp) for i in range(m2): tmp -= b[i] r.add(tmp) print(n + 1 - len(r))
shobonvip