본문 바로가기

백준1056

[백준] 6778 1 2 3 4 5 n=int(input()) a=int(input()) if n>=3 and a 2021. 3. 3.
[백준] 6768 1 2 n=int(input()) print( (n-1)*(n-2)*(n-3)//(3*2*1)) cs 어릴때배웠던 순열조합 경우의수 생각해보시면서 푸시면 쉽습니당 2021. 3. 3.
[백준] 6764 1 2 3 4 5 6 7 8 a=int(input()) b=int(input()) c=int(input()) d=int(input()) if ad : print("Fish Diving") elif a==b and b==c and c==d : print("Fish At Constant Depth") else: print("No Fish") Colored by Color Scripter cs 입력되있는 수들이 증가수열인지 감소하는지 모두 일치하는지 아니면 위 3가지 경우에 모두 해당하지 않는 것인지. 2021. 3. 3.
[백준] 6763 1 2 3 4 5 6 7 8 a=int(input()) b=int(input()) over=b-a if over >=31:print("You are speeding and your fine is $500.") elif over>20:print("You are speeding and your fine is $270.") elif over>0:print("You are speeding and your fine is $100.") else:print("Congratulations, you are within the speed limit!") cs 2021. 3. 3.
[백준] 5928 1 2 3 4 a,b,c=map(int,input().split()) ans= c-11+(b-11)*60+(a-11)*1440 if ans 2021. 3. 3.
[백준] 1297 1 2 3 4 import math a,b,c=map(int, input().split()) r=math.sqrt(b**2+c**2) print(int(a*b/r),int(a*c/r)) cs 2021. 3. 3.
[백준] 20492 1 2 n=int(input()) print(int(n*0.78),int(n-n*0.2*0.22)) cs 절세하는 방법을 소개해드렸습니다~ 2021. 3. 3.
[백준] 20254 1 2 a,b,c,d=map(int,input().split()) print(56*a+24*b+14*c+6*d) cs 2021. 3. 3.
[백준] 18301 1 2 a,b,c=map(int, input().split()) print( (a+1)*(b+1)//(c+1)-1 ) cs 2021. 3. 3.
[백준] 18096 1 print(1) cs 음.. 일단 제가 노어는 하나도 모르구요 구글번역해보니까 나오는식을 정리해보니까 입력값에 상관없이 무조건 1이 나오게 되네요 2021. 3. 3.
[백준] 18108 1 print(int(input())-543) cs 아멘. 2021. 3. 3.
[백준] 17496 1 2 3 a,b,c,d=map(int,input().split()) if a%b==0: print( (a//b-1)*c*d ) else: print( (a//b)*c*d ) cs 이건 예제를 보면 케이스가 크게 두가진데 여름의 총 일수에서 걸리는 일 수를 나누면 나눴을때 나머지가 0인지 0이아닌지에 따라 나눠 처리하면 됩니다. 2021. 3. 3.