-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
21-avocado-13 #94
21-avocado-13 #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
action, side μ§κ΄μ μΈ λ³μλͺ
μ’μ κ² κ°μ΅λλ€:)
21μ°¨μ μκ³ νμ
¨μ΅λλ€ μνλ!
if side == "L": | ||
for _ in range(int(K)): | ||
queue.popleft() | ||
|
||
else: | ||
for _ in range(int(K)): | ||
queue.pop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forλ¬Έμ΄ μ€λ³΅λλ μ½λμΈ κ² κ°μμ! 쑰건문 μμ forλ¬Έμ λ£λ λ°©μλ μ’μ§λ§ forλ¬Έ μμ 쑰건문μ λ£λ 건 μ΄λ¨κΉμ?
for _ in range(int(K)):
if side == "L":
queue.popleft()
else:
queue.pop()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ€μ€ λ§λ€μ!! ν¨μ¬ κΉλν΄μ‘λ€μ κ°μ¬ν©λλ· π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ§κ΄μ μΈ λ³μλͺ
λλΆμ μ½λλ₯Ό μ½κ² μ΄ν΄ν μ μμμ΅λλ€ !
μ΄λ² μ°¨μ PRλ κ³ μνμ
¨μ΅λλ€ βοΈ
for _ in range(int(K)): | ||
queue.pop() | ||
|
||
print(*queue,sep="\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ€ γ γ γ μΆλ ₯λ¬Έ κΉλνκ² μμ±ν΄μ£Όμ λΆλΆ μ’λ€μ :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ μλ λλΆμ μκ²λ sep μ λλ€ π(ΰΈ β’_β’)ΰΈ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λ³μλͺ
μ κΉλνκ² μ μ΄μ£Όμ
μ μ½λλ₯Ό λ μ½κ² νμ
ν μ μμμ΅λλ€!
λ μλ μ½λμ μλ μ²¨λΆ μ΄λ―Έμ§ λλΆμ λ¬Έμ λ₯Ό λ μ ννκ² μ΄ν΄νκ³ μ½λλ₯Ό 지 μ μμμ΅λλ€π
μ΄λ² PRλ μ λ§ μ λ§ μκ³ νμ ¨μ΅λλ€!ππ
π λ¬Έμ λ§ν¬
λ°±μ€ | Cow line
λ¬Έμ μ€λͺ
λλΆ Johnμ Nλ§λ¦¬μ μκ° μ€μ λ§λ€κ³ μλ μ€μ΄λ€. μ²μμλ μ€μ μ무 μκ° μμ§λ§ μ΄λ°κΈ ν λ§λ¦¬μ© μ€μ μΌμͺ½ νΉμ μ€λ₯Έμͺ½μΌλ‘ λ€μ΄μ¨λ€. λλλ‘, μ€λ₯Έμͺ½ νΉμ μΌμͺ½μ μλ λͺλ§λ¦¬μ μλ€μ κ·Έλ€μ΄ μ’μνλ λͺ©μ₯μ νμ λ―μΌλ¬ λκ°λ€. Jλ μ΄ μλ€μ λ°λΌλ€λλ λ° μ΄λ €μμ κ²ͺκ³ μλ€. κ·Έλ₯Ό λμμ£Όμ.
μλ€μ 첫λ²μ§ΈλΆν° Nλ²μ§Έ μκΉμ§ μ€μ λ€μ΄μ€λλ°, ν λ² μ€μ λ λ μλ μ λ λ€μ λ€μ΄μ€μ§ μλλ€. νλ‘κ·Έλ¨μλ S(1 <= S <= 100,000)μ μ λ ₯ μ¬μμ΄ μ£Όμ΄μ§λ©°, κ°κ°μ ν μ€μ λνλκ³ λ κ°μ§ μ ν μ€ νλμ΄λ€:
μ λ ₯ λΌμΈμ μνν μ μλ μμ μ μμ²νμ§ μλλ€.
λͺ¨λ μ λ ₯ λΌμΈμ΄ μ²λ¦¬λ ν νλ‘κ·Έλ¨μ λΌμΈμ μλ μλ₯Ό μΌμͺ½μμ μ€λ₯Έμͺ½ μμλλ‘ μΆλ ₯ν΄μΌ νλ€. λ§μ§λ§ μ€μ μ λ ₯ μ¬μμ΄ λλ λ λΉμ΄ μμ§ μμμΌ νλ€.
μ λ ₯
μΆλ ₯
μ€μ μλ μμ λ²νΈλ₯Ό μΌμͺ½μμ μ€λ₯Έμͺ½ μμλ‘, ν μ€μ νλμ© μΆλ ₯ν΄λΌ.
βοΈ μμλ μκ°
30λΆ
β¨ μλ μ½λ
Caution
κ° μμ λ²νΈλ₯Ό λΆμ¬ν λ, μμ λ²νΈμΈ cowNumμ λ€μ΄κ°λ μμ νν΄μ 1λ²μ§ΈλΆν° μμλκ³ , +1μ© λλ€λ κ²μ μ μν΄μΌ νλ€.
μ΅μ’ μ½λ
π μλ‘κ² μκ²λ λ΄μ©
PR μ λ‘λκ° λ¦μ μ μ λ§ μ£μ‘ν©λλ€.