結果

問題 No.2401 Dirty Shoes and Stairs
ユーザー 👑 timitimi
提出日時 2023-08-04 21:26:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,380 KB
実行使用メモリ 111,344 KB
最終ジャッジ日時 2024-04-22 19:46:25
合計ジャッジ時間 2,610 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,820 KB
testcase_01 AC 38 ms
52,200 KB
testcase_02 AC 36 ms
52,956 KB
testcase_03 AC 62 ms
81,464 KB
testcase_04 AC 62 ms
84,728 KB
testcase_05 AC 48 ms
68,296 KB
testcase_06 AC 57 ms
81,120 KB
testcase_07 AC 77 ms
100,728 KB
testcase_08 AC 55 ms
76,976 KB
testcase_09 AC 42 ms
62,104 KB
testcase_10 AC 52 ms
73,124 KB
testcase_11 AC 95 ms
111,344 KB
testcase_12 AC 80 ms
105,532 KB
testcase_13 AC 42 ms
60,104 KB
testcase_14 AC 40 ms
58,940 KB
testcase_15 AC 39 ms
60,236 KB
testcase_16 AC 41 ms
59,232 KB
testcase_17 AC 41 ms
59,260 KB
testcase_18 AC 40 ms
58,840 KB
testcase_19 AC 41 ms
59,940 KB
testcase_20 AC 40 ms
60,020 KB
testcase_21 AC 40 ms
58,428 KB
testcase_22 AC 40 ms
60,740 KB
testcase_23 AC 41 ms
61,064 KB
testcase_24 AC 41 ms
59,516 KB
testcase_25 AC 41 ms
59,792 KB
testcase_26 AC 39 ms
59,584 KB
testcase_27 AC 40 ms
58,440 KB
testcase_28 AC 40 ms
59,300 KB
testcase_29 AC 38 ms
58,224 KB
testcase_30 AC 39 ms
57,908 KB
testcase_31 AC 41 ms
61,328 KB
testcase_32 AC 39 ms
58,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
D=[1]*(N+1)
M=int(input())
A=list(map(int, input().split()))
now=0
for a in A:
  now+=a 
  D[now]=0
M=int(input())
A=list(map(int, input().split()))
now=-1
for a in A:
  now-=a 
  D[now]=0
print(sum(D))
0