top of page

게시판 게시물

jh1107
2024년 5월 05일
In 소스 코드 제출
# n=int(input()) # for i in range(n): # print("*"*n) # n=int(input()) # a=(' ') # for i in range(1,n+1): # a=(' ')*i # print("**",'\n',end=a) # n=int(input()) # for i in range(1,n+1): # for j in range(1,n+1): # if i==1 or i==n or j==1 or j==n: # print("*",end="") # else : # print(" ",end="") # print() # n=int(input()) # # for i in range(1,n+1): # for j in range(1,n+1): # if i==1 or i==n or j==1 or j==n or i==j or i+j==n+1: # # print("*",end="") # else : # print(" ",end="") # print()
0
0
2
jh1107
2024년 4월 07일
In 소스 코드 제출
# a, b, c = map(int,input().split()) # tot = a+b+c # tot=tot//100 # if tot%2==0: # print("대박") # else: # print("그럭저럭") # a,b= map(float,input().split()) # tot=0 # if a<150: # tot=a-100 # elif 150<=a<160: # tot=(a-150)/2+50 # else: # tot=(a-100)*0.9 # # bi = (b-tot)*100/tot # if bi<=10: # print("정상") # elif 10<bi<=20: # print("과체중") # else: # print("비만") # x[0] x[1] x[2] x[3] x[4] a[5] a[6] a[7] a[8] # '1' '0' '+' '1' '0' # x = input() # if x.count('+')==1 : # op = '+' # index = x.index('+') # elif x.count('-')==1 : # op='-' # index = x.index('-') # elif x.count('*')==1 : # op='*' # index = x.index('*') # else: # op='/' # index = x.index('/') # a = x[:index] # b = x[index+1:] # # a = int(a) # b = int(b) # # if op=='+' : # tot=a+b # print(tot) # elif op=='-' : # tot=a-b # print(tot) # elif op=='*': # tot=a*b # print(tot) # else: # a=float(a) # b=float(b) # tot=a/b # print('%.2f'%tot) # 반복문 for or while # while 조건식 : # 명령 # range(5) 0 ~ 5미만 1간격 0 1 2 3 4 # range(2,5) 2 ~ 5미만 1간격 2 3 4 # range(1,10,2) 1이상 10미만 2간격 1 3 5 7 9 # range(5,1,-1) 5이하 1초과 -1간격 5 4 3 2 # for i in range(5,1,-1) : # print(i) # x = 'hello' # for i in x : # print(i) # for i in range(5) : # if i%2==0 : # # for i in range(1,101): # print(i,end=' ') # n=int(input()) # for i in range(1,n+1): # print(i,end=' ') # a,b=map(int,input().split()) # for i in range(a,b+1): # if i%2==1: # print(i,end=(" ")) # n=int(input()) # tot=0 # for i in range(1,n+1): # tot=tot+i # if i==n: # print(tot)
0
0
3
jh1107
2024년 3월 31일
In 소스 코드 제출
# c=(a-100)*0.9 # d=(b-c)*100/c # if d<=10: # print("정상") # elif 10<d<=20: # print("과체중") # else: # print("비만") # a, b, c = map( int, input().split() ) # if a<=170: # print("CRASH",a) # elif b<=170: # print("CRASH",b) # elif c<=170: # print("CRASH",c) # else: # print("PASS") # n=int(input()) # # a=n%10 # b = n//10 # n = a*10+b # n=n*2 # n=n%100 # print(n) # if n<=50: # print("GOOD") # else: # print("OH MY GOD") a, b, c = map( int, input().split() ) if a==b==c: print("정삼각형") elif c>=a+b: print("삼각형아님") elif a==b!=c or a==c!=b or c==b!=a: print("이등변삼각형") elif a**2+b**2== c**2 or a**2+c**2== b**2 or c**2+b**2== a**2: print("직각삼각형") else: print("삼각형")
0
0
1
jh1107
2024년 3월 24일
In 소스 코드 제출
# a = int(input()) # if a%400==0: # print("Leap") # else: # if a%4==0 and a%100!=0: # print("Leap") # else: # print("Normal") # # a : 514 # # a//10 : 51 # a%10 : 4 ---> a%10 : a의 일의자리수 # # a=int(input()) # if a%10==1 and a!=11: # a=str(a) # a=a+"st" # elif a%10==2 and a!=12: # a=str(a) # a=a+"nd" # elif a%10==3 and a!=13: # a=str(a) # a=a+"rd" # else: # a=str(a) # a=a+"th" # print(a) # a, b= map(int,input().split()) # if b==4 or b==6 or b==9 or b==11: # print(30) # elif b==2: # if a%400==0: # print(29) # elif a%4==0 and a%100!=0: # print(29) # else : # print(28) # else: # print(31) # a, b, c= map(int,input().split()) # if a>b-c: # print("do not advertise") # elif a<b-c: # print("advertise") # else: # print("does not matter")
0
0
3
jh1107
2024년 3월 17일
In 소스 코드 제출
# a,b = input().split() # a=int(a) # b=int(b) # a, b = map(int, input().split()) # tot=0 # if b%a==0: # tot=b/a # tot=int(tot) # print(a,"*",tot,"=",b,sep='') # elif a % b == 0: # tot = a / b # tot = int(tot) # print(b, "*", tot, "=", a,sep="") # else: # print("none") # a = input() # b = input() # a=int(a) # b=int(b) # print(a) # print(b) # a = float(input()) # print(a,a,a,sep='\n') # # a, b = input().split() # print(a,b,sep="\n") # n=input() # s=input() # n=int(n) # print(n*s) # a, b, c= map(int,input().split()) # tot=a+b+c # ton=(a+b+c)/3 # print(tot,'%.2f'%ton) # a, b, c= map(int,input().split()) # if a>170 and b>170 and c>170: # print("PASS") # else: # print("CRASH") # n=int(input()) # if 30<=n<=40 or 60<=n<=70: # print("win") # else: # print("lose") # a, b = input().split() # a=int(a) # b=int(b) # if b >= 30 : # print(a,b-30) # else : # if a==0 : # a=a+23 # print(a,b+30) # # else : # a=a-1 # b=b+30 # print(a,b) a = int(input()) if a%400==0: print("Leap") else: if a%4==0 and a%100==1: print("Leap") else: print("Normal")
0
0
4
jh1107
2024년 3월 10일
In 소스 코드 제출
# print('Hello') # a=input() # a=int(a) # if a%7==0: # print("multiple") # else: # print("not multiple") # a=input() # a=float(a) # if 50<=a and a<=60: # print("win") # else: # print("lose") # a, b, c = input().split() # a=int(a) # b=int(b) # c=int(c) # tot=a-b+c # if tot%10==0: # print("대박") # else: # print("그럭저럭") a, b = input().split() a=int(a) b=int(b) print(a,b) tot=b-30 if tot<0: tot=int(tot) tot=60+tot a=a-1 if a == 0: a = a + 23 print(a, tot) else : print(a, tot) else : print(a,tot) https://www.onlinegdb.com/online_python_compiler
0
0
4

jh1107

더보기
bottom of page