結果

問題 No.2401 Dirty Shoes and Stairs
ユーザー 👑 KA37RIKA37RI
提出日時 2023-08-04 21:33:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 163 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 445 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 30,132 KB
最終ジャッジ日時 2024-04-22 19:55:28
合計ジャッジ時間 3,385 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,752 KB
testcase_01 AC 25 ms
10,752 KB
testcase_02 AC 25 ms
10,496 KB
testcase_03 AC 81 ms
20,928 KB
testcase_04 AC 107 ms
20,824 KB
testcase_05 AC 47 ms
14,828 KB
testcase_06 AC 93 ms
29,508 KB
testcase_07 AC 128 ms
22,120 KB
testcase_08 AC 73 ms
20,256 KB
testcase_09 AC 33 ms
11,776 KB
testcase_10 AC 63 ms
14,872 KB
testcase_11 AC 163 ms
23,856 KB
testcase_12 AC 162 ms
30,132 KB
testcase_13 AC 54 ms
28,016 KB
testcase_14 AC 54 ms
27,864 KB
testcase_15 AC 44 ms
19,544 KB
testcase_16 AC 34 ms
14,372 KB
testcase_17 AC 42 ms
19,188 KB
testcase_18 AC 52 ms
27,736 KB
testcase_19 AC 42 ms
19,416 KB
testcase_20 AC 29 ms
13,696 KB
testcase_21 AC 33 ms
14,616 KB
testcase_22 AC 41 ms
19,116 KB
testcase_23 AC 53 ms
27,752 KB
testcase_24 AC 33 ms
14,616 KB
testcase_25 AC 38 ms
19,360 KB
testcase_26 AC 29 ms
11,520 KB
testcase_27 AC 38 ms
19,360 KB
testcase_28 AC 52 ms
27,860 KB
testcase_29 AC 39 ms
19,096 KB
testcase_30 AC 32 ms
15,004 KB
testcase_31 AC 51 ms
27,748 KB
testcase_32 AC 33 ms
14,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

N = int(input())
M1 = int(input())
A = [int(x) for x in input().split()]
M2 = int(input())
B = [int(x) for x in input().split()]
clean = set(range(N))
for i in itertools.accumulate(A):
  clean.discard(i)
for i in itertools.accumulate(B):
  clean.discard(N - i)
print(len(clean))
0