結果

問題 No.2401 Dirty Shoes and Stairs
ユーザー n_nan_na
提出日時 2023-08-05 01:24:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 90 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 222 ms
コンパイル使用メモリ 82,600 KB
実行使用メモリ 117,240 KB
最終ジャッジ日時 2024-04-22 23:18:34
合計ジャッジ時間 2,470 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,272 KB
testcase_01 AC 37 ms
54,104 KB
testcase_02 AC 34 ms
52,272 KB
testcase_03 AC 54 ms
81,784 KB
testcase_04 AC 58 ms
85,320 KB
testcase_05 AC 44 ms
67,804 KB
testcase_06 AC 57 ms
80,536 KB
testcase_07 AC 72 ms
101,256 KB
testcase_08 AC 53 ms
76,488 KB
testcase_09 AC 41 ms
62,608 KB
testcase_10 AC 51 ms
73,384 KB
testcase_11 AC 90 ms
117,240 KB
testcase_12 AC 77 ms
105,412 KB
testcase_13 AC 39 ms
60,700 KB
testcase_14 AC 37 ms
59,152 KB
testcase_15 AC 37 ms
58,664 KB
testcase_16 AC 36 ms
59,836 KB
testcase_17 AC 37 ms
60,460 KB
testcase_18 AC 39 ms
59,392 KB
testcase_19 AC 38 ms
58,428 KB
testcase_20 AC 37 ms
60,484 KB
testcase_21 AC 37 ms
58,520 KB
testcase_22 AC 39 ms
60,124 KB
testcase_23 AC 39 ms
60,076 KB
testcase_24 AC 37 ms
59,412 KB
testcase_25 AC 37 ms
60,928 KB
testcase_26 AC 36 ms
60,720 KB
testcase_27 AC 35 ms
60,128 KB
testcase_28 AC 37 ms
59,396 KB
testcase_29 AC 35 ms
59,464 KB
testcase_30 AC 35 ms
57,752 KB
testcase_31 AC 38 ms
60,208 KB
testcase_32 AC 36 ms
59,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

M1 = int(input())
A = list(map(int,input().split()))

M2 = int(input())
B = list(map(int,input().split()))

done = [True]*(N+1)
c = 0
for a in A:
    c += a
    done[c] = False
for b in B:
    c -= b
    done[c] = False
res = done.count(1)
print(res)
0