結果

問題 No.2401 Dirty Shoes and Stairs
ユーザー miya145592miya145592
提出日時 2023-08-04 22:20:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 282 bytes
コンパイル時間 142 ms
コンパイル使用メモリ 82,200 KB
実行使用メモリ 115,716 KB
最終ジャッジ日時 2024-04-22 20:37:54
合計ジャッジ時間 2,412 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,620 KB
testcase_01 AC 35 ms
53,804 KB
testcase_02 AC 33 ms
52,852 KB
testcase_03 AC 51 ms
82,580 KB
testcase_04 AC 55 ms
85,264 KB
testcase_05 AC 42 ms
66,976 KB
testcase_06 AC 52 ms
80,776 KB
testcase_07 AC 69 ms
101,036 KB
testcase_08 AC 49 ms
76,464 KB
testcase_09 AC 38 ms
62,676 KB
testcase_10 AC 45 ms
74,348 KB
testcase_11 AC 82 ms
115,716 KB
testcase_12 AC 71 ms
105,896 KB
testcase_13 AC 37 ms
60,996 KB
testcase_14 AC 36 ms
59,944 KB
testcase_15 AC 39 ms
59,296 KB
testcase_16 AC 40 ms
59,752 KB
testcase_17 AC 38 ms
61,176 KB
testcase_18 AC 38 ms
59,920 KB
testcase_19 AC 35 ms
59,996 KB
testcase_20 AC 37 ms
59,564 KB
testcase_21 AC 36 ms
58,784 KB
testcase_22 AC 37 ms
60,892 KB
testcase_23 AC 37 ms
60,860 KB
testcase_24 AC 38 ms
60,188 KB
testcase_25 AC 39 ms
60,088 KB
testcase_26 AC 37 ms
59,588 KB
testcase_27 AC 36 ms
59,212 KB
testcase_28 AC 36 ms
59,608 KB
testcase_29 AC 36 ms
59,392 KB
testcase_30 AC 37 ms
58,600 KB
testcase_31 AC 38 ms
61,184 KB
testcase_32 AC 36 ms
58,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
M1 = int(input())
A = list(map(int, input().split()))
M2 = int(input())
B = list(map(int, input().split()))
S = [1 for _ in range(N+1)]
now = 0
S[now] = 0
for a in A:
    now+=a
    S[now] = 0
now = N
S[now] = 0
for b in B:
    now-=b
    S[now] = 0
print(sum(S))

0