Open
Conversation
Collaborator
Author
|
A strip()안붙여서 틀린거네요. |
Contributor
파이썬에 데이셨군요 |
| inf = math.inf | ||
| input = sys.stdin.readline | ||
|
|
||
| MOD = 1e9 + 7 |
Contributor
There was a problem hiding this comment.
input을 input = lambda: sys.stdin.readline().rstrip("\n") 으로 해주면 편하고
MOD도 1e9+7 하면 float 타입일거라 10**9+7로 써야합니다
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A: 문자열 길이가 5배수인지만 따지면 됨 근데 파이썬으로 짠거 틀리던데 이유가 뭐지
B: 전기 후기 나눠서 각각 저장 후 나중에 한줄씩 출력할때 빼기
C: treeset으로 정렬상태 유지, erase(a.begin(), a.upper_bound()) 로 한방에 제거
D: 전탐색 짜면 되는데 시간이 없었음... 정렬상태 유지 및 중복 제거는 treeset으로 하면 된다
A에서 2틀하고 초반에 시간을 너무 버린게 패착이었던 것 같습니다. 오늘은 좀 많이 아쉽네요