Python1423 [백준] 11948 1 2 3 4 5 6 7 a=int(input()) b=int(input()) c=int(input()) d=int(input()) e=int(input()) f=int(input()) print(max(a+b+c,a+b+d,a+c+d,b+c+d)+max(e,f)) cs 2020. 12. 16. [백준] 11943 1 2 3 a,b=map(int,input().split()) c,d=map(int,input().split()) print(min(a+d,b+c)) cs 2020. 12. 16. [백준] 10768 1 2 3 4 5 6 7 8 9 a=int(input()) b=int(input()) if a==1: print("Before") if a>2: print("After") if a==2: if b==18: print("Special") if b>18:print("After") if b 2020. 12. 16. [백준] 10179 1 2 3 4 n=int(input()) for i in range(n): price=float (input()) print("$%.2f"%round(price*0.8,2)) cs 2020. 12. 16. [백준] 10162 1 2 3 4 5 6 7 8 9 n=int(input()) if n%10!=0: print(-1) else : a=int (n/300) n%=300 b=int (n/60) n%=60 c=int(n/10) print("%d %d %d"%(a,b,c)) cs 2020. 12. 16. [백준] 10156 1 2 3 a,b,c=map(int,input().split()) if a*b>c: print(a*b-c) else : print(0) cs 2020. 12. 16. [백준] 10101 1 2 3 4 5 6 7 a=int(input()) b=int(input()) c=int(input()) if a==60 and a==b and b==c: print("Equilateral") elif a+b+c ==180 and (a==b or b==c or a==c): print("Isosceles") elif a+b+c==180: print("Scalene") else : print("Error") Colored by Color Scripter cs 2020. 12. 16. [백준] 5893 1 2 a=input() print (bin( int(a,2)*17)[2:]) cs 2020. 12. 15. [백준] 5543 1 2 3 4 5 6 7 L=int(input()) A=int(input()) B=int(input()) C=int(input()) D=int(input()) import math print(min(L,A,B)+min(C,D)-50) cs 2020. 12. 15. [백준] 5532 1 2 3 4 5 6 7 L=int(input()) A=int(input()) B=int(input()) C=int(input()) D=int(input()) import math print(L-max(int(math.ceil(A/C)),int(math.ceil(B/D)))) cs 2020. 12. 15. [백준] 2753 1 2 3 4 5 a=int(input()) if a%4==0 and a%100!=0: print(1) elif a%400==0: print(1) else : print(0) cs 2020. 12. 15. [백준] 2752 1 2 3 4 import sys tmp=list(map(int, sys.stdin.readline().split())) tmp.sort() print(tmp[0],tmp[1],tmp[2]) cs 입력을 list 형태로 통으로 받고 내장함수 sort()를 통해 정렬을 해줍니다. sort함수의 기본 정렬이 오름차순입니다. 내림차순으로 하시고 싶으시면 안에 parameter로 reverse=True 를 넣어주시면 됩니다. 2020. 12. 15. 이전 1 ··· 113 114 115 116 117 118 119 다음