목차

Subarray Divisibility

ps
링크cses.fi/…
출처CSES
문제 번호1662
문제명Subarray Divisibility
분류

누적합

시간복잡도O(n)
인풋사이즈n<=2*10^5
사용한 언어PyPy 3.9
제출기록0.10s
최고기록0.08s
해결날짜2026/05/07

풀이

코드

collection.Counter를 사용해서 TLE가 나는 코드

그냥 list를 이용해서 카운팅

teflib.labs.intset.FrozenIntCounter를 사용