結果
問題 |
No.2401 Dirty Shoes and Stairs
|
ユーザー |
![]() |
提出日時 | 2023-08-04 22:41:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 541 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,820 KB |
最終ジャッジ日時 | 2024-10-14 20:44:44 |
合計ジャッジ時間 | 3,789 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 29 |
ソースコード
import sys input = sys.stdin.readline def main(): N = int(input()) M1 = int(input()) A = list(map(int, input().split())) M2 = int(input()) B = list(map(int, input().split())) At = [0] * (M1 + 1) for i in range(M1): At[i+1] = At[i] + A[i] Bt = [N] * (M2 + 1) for i in range(M2): Bt[i+1] = Bt[i] - B[i] count = 0 for i in range(N+1): if (i not in At) and (i not in Bt): count += 1 print(count) if __name__ == '__main__': main()