Skip to content

ABC451 / cnvxlns#36

Open
cnvxlns wants to merge 8 commits intoPNU-PULSE:mainfrom
cnvxlns:main
Open

ABC451 / cnvxlns#36
cnvxlns wants to merge 8 commits intoPNU-PULSE:mainfrom
cnvxlns:main

Conversation

@cnvxlns
Copy link
Copy Markdown
Collaborator

@cnvxlns cnvxlns commented Mar 28, 2026

A: 문자열 길이가 5배수인지만 따지면 됨 근데 파이썬으로 짠거 틀리던데 이유가 뭐지
B: 전기 후기 나눠서 각각 저장 후 나중에 한줄씩 출력할때 빼기
C: treeset으로 정렬상태 유지, erase(a.begin(), a.upper_bound()) 로 한방에 제거
D: 전탐색 짜면 되는데 시간이 없었음... 정렬상태 유지 및 중복 제거는 treeset으로 하면 된다

A에서 2틀하고 초반에 시간을 너무 버린게 패착이었던 것 같습니다. 오늘은 좀 많이 아쉽네요

@cnvxlns
Copy link
Copy Markdown
Collaborator Author

cnvxlns commented Mar 28, 2026

A strip()안붙여서 틀린거네요.
언어에대한 이해도가 부족했던것 같습니다.

@7hyunii
Copy link
Copy Markdown
Contributor

7hyunii commented Mar 28, 2026

A strip()안붙여서 틀린거네요. 언어에대한 이해도가 부족했던것 같습니다.

파이썬에 데이셨군요

inf = math.inf
input = sys.stdin.readline

MOD = 1e9 + 7
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input을 input = lambda: sys.stdin.readline().rstrip("\n") 으로 해주면 편하고
MOD도 1e9+7 하면 float 타입일거라 10**9+7로 써야합니다

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

input에 rstrip포함은 꿀팁이네요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants