-
Notifications
You must be signed in to change notification settings - Fork 1
19-froglike6 #72
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
19-froglike6 #72
Conversation
|
λ¬Έμ λ§ν¬ μ΄λ¦μ΄λ readme 19μ°¨μ μ΄λ¦μ΄ μλ°λ κ² κ°μμ© γ γ |
ν μμ νμ΅λλ€ |
dohyeondol1
left a comment
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.
νν... μ λνΉμ κ·Έλ₯ κ΄μ°° λ κ΄μ°°μ΄λΌλκ±Έ κ°μ΄μ λͺ
μ¬νκ² λλ μκ°μ΄μμ΅λλ€.
μλ‘μλΌλ λ§μ νΉν΄μ μλ‘μ μ§ν©μ νμ°Έ μκ°ν΄λ³΄κ³ 머리λ₯Ό ꡴리λ€κ°
κ·Έλ₯ κ·λ©μ μΌλ‘ νλΌλ ννΈμ 5λΆ μ»·μ΄λλ€μ...
ACλ₯Ό λ°κ³ λ μ λ§λ νμ΄μΈμ§ μκ°νλλ°μλ μκ°μ΄ μ‘°κΈ λ λ€μμ΅λλ€..
λνλμ΄ μ€λͺ
μ κΉλνκ² μ μ¨μ£Όμ
μ νμ΄κ° λ§λ€λκ±Έ νμΈνμ΅λλ€.
μ... 체κ°μ μμ΄λμ΄κ° κ±°μ 무λ¦νλμ¬μ
λλ€...
μ΄κ±΄ λ νμ΄ μ½λλ₯Ό μΆκ°ν νμκ° μλ μΆλ€μ..γ γ
#include <iostream>
using namespace std;
int main() {
int T;
cin >> T;
while(T--) {
int N;
cin >> N;
if(N == 2)
cout << "kang" << '\n';
else
cout << "chan" << '\n';
}
return 0;
}μ΄λ² κΈ°νμ μ λ νΉ λ¬Έμ λ₯Ό λͺκ° νμ΄λ΄μΌκ² μ΅λλ€.
μλͺ©μ λνλ΄μΌ κ² λ€μ..!!
|
μ€.. λκ² μ°Έμ νλ©΄μλ λΉμ°ν λ°μμΌλ‘ νμ΄μΌ νλκ΅°μ ( μ΄λ° λ¬Έμ μλ μ΅μν΄μ ΈμΌ ν ν λ°.. κ΄μ°°λ ₯μ κΈΈλ¬λ³΄κ² μ΅λλ€. νμ΄ μ½λκ° λ무 κ°λ¨νκ³ μ΄λ―Έ μ¬λ €μ£Όμ μ½λλ λΉμ·ν΄μ μλ΅νκ² μ΅λλ€.. π« |
hadongun
left a comment
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λ³΄κ³ λ€μ νμΈν΄λ΄€μ΅λλ€..!
μ λ νΉ λ§€λ ₯μ μ΄κ΅°μ
import sys
input = sys.stdin.readline
T = int(input())
for _ in range(T):
N = int(input())
if N == 2:
print('kang')
else:
print('chan')
π λ¬Έμ λ§ν¬
μλ‘μ κ·Έλν κ²μ
βοΈ μμλ μκ°
30λΆ
β¨ μλ μ½λ
μλ μ½λ(νμν κΉμ..?)
μ΄ λ¬Έμ λ μ λ νΉ λ¬Έμ μ λλ€ γ γ ..
μΉλ―Όμ΄κ° λ¨Όμ κ²μμ μμν©λλ€. μ μ Nκ°λ‘ μμνλλ°, μκΈ° μ°¨λ‘μλ μ°κ²° μμμ μν μ μ μ μκ° μλ‘μμΈ μλ‘ λ€λ₯Έ λ μ μ μ μ νν΄ κ°μ μ μΆκ°ν΄μΌ ν©λλ€. μκΈ° μ°¨λ‘μ κ°μ μ μΆκ°ν μ μλ μ μ μμ΄ μμΌλ©΄ ν¨λ°°ν©λλ€.
μ무κ²λ μ°κ²°λμ§ μμ μ μ 2κ°κ° μμ΅λλ€. 1κ³Ό 1μ μλ‘μμ΄λ―λ‘, μΉλ―Όμ΄λ μ΄ 2κ°μ μ μ μ μ νν©λλ€. κ·Έ λ€μ μ°¬μμ΄λ μ νν μ μλ μ μ μ΄ μμΌλ―λ‘ ν¨λ°°ν©λλ€.
μΉλ―Όμ΄λ μ무거λ 2κ°λ₯Ό κ³¨λΌ μ°κ²°ν©λλ€. μ°¬μμ΄λ μ°κ²°λ μ μ μ€ νλ, λλ¨Έμ§ νλλ₯Ό μ νν©λλ€. μ΄μ μΉλ―Όμ΄λ ν¨λ°°ν©λλ€.
μΉλ―Όμ΄λ μ무거λ 2κ°λ₯Ό κ³¨λΌ μ°κ²°ν©λλ€. μ°¬μμ΄λ μ°κ²°λμ§ μμ μ μ 2κ°λ₯Ό μ νν΄ μ°κ²°ν©λλ€. μΉλ―Όμ΄λ$\gcd(2,2)=2$ μ΄λ―λ‘ μ νν μ μ μ΄ μμΌλ―λ‘ ν¨λ°°ν©λλ€.
μΉλ―Όμ΄λ μ무거λ 2κ°λ₯Ό κ³¨λΌ μ°κ²°ν©λλ€. μ°¬μμ΄λ 2κ° μ΄μμ μ°κ²°λμ§ μμ μ μ μ΄ λ¨μμμΌλ©΄ μ΄λ₯Ό μ νν΄ μ°κ²°ν©λλ€. μ΄λ κ² λλ©΄ νμ μΉλ―Όμ΄ μ°¨λ‘μλ (μ°κ²°λμ§ μμ μ μ 1κ°, μ μ μ μκ° μ§μ κ°μΈ μ μ )μ΄λ (μ°κ²°λμ§ μμ μ μ 1κ°, μ°κ²°λμ§ μμ μ μ 1κ°) μλ§ λ¨κ² λ©λλ€. μΉλ―Όμ΄κ° μ΄λ»κ² μ ννλ , μ°¬μμ΄λ μ§μλ§ λ¨λ κ²½μ°λ₯Ό λ§λ€ μ μκ³ , μ΄λ₯Ό μΉλ―Όμ΄μκ² λκΈ°κ² λ©λλ€. μ§μμ μ΅λ곡μ½μλ 무쑰건 2 μ΄μμ΄λ―λ‘, νμ μΉλ―Όμ΄κ° ν¨λ°°ν©λλ€.
λ°λΌμ μΉλ―Όμ΄λ$N=2$ λλ§ μ΄κΈ°κ³ , λλ¨Έμ§ λͺ¨λ κ²½μ°μλ μ°¬μμ΄κ° μ΄κΈ°κ² λ©λλ€.
π μλ‘κ² μκ²λ λ΄μ©