목록PS (281)
지나가던 개발자

[print(" ".join(list(map(str, x)))) for x in sorted([list(map(int, input().split())) for y in range(int(input()))])] 이왜진?이다... ㅋㅋㅋㅋ sorted()만으로 된다는 점에 놀랐다. 숏코딩 5등...! 이런 영예로운 기회를 얻다니...

from itertools import combinations import math for i in range(int(input())): m = list(map(int, input().split())) biggest = 0 for j in combinations(m, 2): if math.gcd(j[0], j[1]) > biggest: biggest = math.gcd(j[0], j[1]) print(biggest)

#include int main() { int n; int a = 1; scanf("%d", &n); for (int i=2; i*i

import math a, b = map(int, input().split()) print(math.lcm(a, b))

input() [print(x, end=" ") for x in sorted(list(map(int, input().split())))] 숏코딩 81위...!

import sys n, s = map(int,sys.stdin.readline().split()) cows = [int(sys.stdin.readline()) for x in range(n)] ans = 0 while True: try: i = cows[0] del cows[0] except: break for j in cows: if i + j

while True: n = int(input()) if n == 0: break studentsAndHeights = [input().split() for i in range(n)] print(" ".join([x[0] for x in studentsAndHeights if float(x[1])==max([float(y[1]) for y in studentsAndHeights])])) 숏코딩을 하고 싶어서 일부러 이렇게 난해한 코드를 짰는데... 무려 14등..>! 기쁘다.