結果
| 問題 |
No.2401 Dirty Shoes and Stairs
|
| コンテスト | |
| ユーザー |
bit_kyopro
|
| 提出日時 | 2023-08-04 21:42:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 258 bytes |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 129,536 KB |
| 最終ジャッジ日時 | 2024-10-14 19:40:07 |
| 合計ジャッジ時間 | 2,750 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 22 |
ソースコード
n = int(input())
m1 = int(input())
a = list(map(int, input().split()))
m2 = int(input())
b = list(map(int, input().split()))
st = {0, n}
s = 0
for i in range(m1):
s += a[i]
st.add(s)
s = 0
for i in range(m2):
s += b[i]
st.add(s)
print(n + 1 - len(st))
bit_kyopro