-
Notifications
You must be signed in to change notification settings - Fork 0
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
3-pu2rile #10
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.
μ λ μμ μ μ΄ λ¬Έμ λ₯Ό νμλλ° λνλ μ²μ νμ΄μ²λΌ if - elseλ‘ μ λλ μ countνλ©΄μ νμλλ° μνλ²³ νλλ‘ μΉννλ μ’μ λ°©λ²μ΄ μμλ€μπ―
μλ‘μ΄ μ κ·Όλ² νλ μμκ°μ!! PR μκ³ νμ
¨μ΄μ~
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 μμ± μκ³ νμ ¨μ΅λλ€.
μ΄λ²μ£Ό μκ³ λ¦¬λλ―Έ μμ±νμλλΌ μκ³ νμ ¨μ΅λλ€. ν¬λ‘μν°μ μνλ²³ μΌμ’ μ λ¬Έμ ν¨ν΄ 맀μΉ? λΆλ₯μ λ¬Έμ μλκ² κ°μλ° μ€νμ μ΄μ©ν΄μ νμλ κΈ°μ΅μ λλλ° μλ‘μ΄ μ½λλ‘ μ§μ¬μ§ λ¬Έμ νμ΄λ₯Ό 보λ ν₯λ―Έλ‘λ€μ! μλ‘κ² μμκ°λλ€~ |
π λ¬Έμ λ§ν¬
https://www.acmicpc.net/problem/2941
βοΈ μμλ μκ°
30λΆ
β¨ μλ μ½λ
change[]
λ‘ μ μνλ€.input()
μΌλ‘ λ¬Έμμ΄str
μ μ λ ₯λ°λλ€..replace()
μ¬μ©.=> 'dz='μ κ°μ λ¬Έμλ₯Ό νλμ ν¬λ‘μν°μ μνλ²³μΌλ‘ κ³μ°ν΄μΌ νκΈ° λλ¬Έμ΄λ€.
len() μ¬μ©
)νλ©΄ μνλ²³μ μκ° κ³μ°λλ€.π₯οΈ μ½λ
π μλ‘κ² μκ²λ λ΄μ©
μ²μ λ¬Έμ λ₯Ό μλνμ λ μ΄μ κ°μ μμν μ½λλ₯Ό μμ±νμλλ°...
λ€μ μ°¨κ·Όμ°¨κ·Ό μκ°ν΄ 보λ 리μ€νΈ μμλ₯Ό μλͺ» λ£μ΄μ νκ³ μλλΌκ΅¬μ...γ γ ;;
μ무νΌ!
λ¬Έμ λ₯Ό ν΅ν΄ replaceν¨μμ lenν¨μλ₯Ό μ€λλ§μ μ¨ λ³΄λ©΄μ 볡μ΅λ λκ³ μ’μμ΅λλΉ
λ€λ€ μ΄μ μν κΈ°κ° μμλμ ¨μ ν λ°... νμ΄ν ν΄μ... κ°μ΄... μμμμ