반응형

문제 설명

https://www.acmicpc.net/problem/4589

https://www.acmicpc.net/board/view/91873

 

 

제출한 코드

print("Gnomes:")
num = int(input())
for i in range(num) :
    lst = list(map(int, input().split()))
    if (lst[2] - lst[1] >= 0 and lst[1] - lst[0] >= 0) or (lst[2] - lst[1] < 0 and lst[1] - lst[0] < 0) :
        print("Ordered")
    else :
        print("Unordered")

 

 

 

 

결과

 

 

후기

 

 

 

 

반응형
반응형

문제 설명

https://www.acmicpc.net/problem/4562

https://www.acmicpc.net/board/view/88258

 

 

 

제출한 코드

num = int(input())
for i in range(num):
    a,b = map(int, input().split())
    if a<b :
        print("NO BRAINS")
    else :
        print("MMM BRAINS")

 

 

 

 

결과

 

 

후기

 

 

 

 

반응형
반응형

문제 설명

https://www.acmicpc.net/problem/1032

 

 

 

제출한 코드

import sys

num = int(sys.stdin.readline())
if num!= 0:
    word = list(sys.stdin.readline())
    for i in range(num-1):
        word1 = sys.stdin.readline()
        for n in range(len(word)):
            if word[n] != word1[n]:
                word[n] = '?'

    for i in range (len(word)) :
        print(word[i], end='')

 

 

 

 

결과

 

 

 

후기

 

 

 

 

반응형

+ Recent posts