728x90 반응형 SMALL 백준문제105 백준) 29699번 - python n = int(input()) sentence = "WelcomeToSMUPC" * n print(sentence[n-1]) 2024. 3. 6. 백준) 28938번 - python n0= int(input()) n1 = map(int,input().split()) count = 0 for i in n1: count += i if count > 0:print("Right") elif count ==0: print("Stay") else: print("Left") 2024. 3. 5. 백준) 29163번 - python n,a= int(input()),list(map(int,input().split())) count= 0 for i in range(n): if a[i] % 2 == 0: count += 1 print("Happy" if count > n/2 else "Sad") 2024. 3. 4. 백준) 28927번 - python t1, e1, f1 = map(int, input().split()) t2, e2, f2 = map(int, input().split()) if t1 * 3 +e1 * 20 + f1 * 120 > t2 * 3 + e2 * 20 +f2 * 120 :print("Max") elif t1 * 3 +e1 * 20 +f1 * 120 == t2 * 3+ e2 * 20+f2 * 120 :print("Draw") else: print("Mel") 2024. 3. 3. 이전 1 ··· 14 15 16 17 18 19 20 ··· 27 다음 728x90 반응형 LIST