diff --git "a/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10250.py" "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10250.py" new file mode 100644 index 0000000..0833e46 --- /dev/null +++ "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10250.py" @@ -0,0 +1,13 @@ +t = int(input()) + +for i in range(t): + h, w, n = map(int, input().split()) + x = 0 + # n = h*y+x + while n > h * x: + x = x + 1 + + y = n - h * (x - 1) + x = str(x).zfill(2) + y = str(y) + print("%s%s" % (y, x)) \ No newline at end of file diff --git "a/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10757.py" "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10757.py" new file mode 100644 index 0000000..064525d --- /dev/null +++ "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/10757.py" @@ -0,0 +1,2 @@ +a, b = map(int, input().split()) +print(a+b) \ No newline at end of file diff --git "a/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2775.py" "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2775.py" new file mode 100644 index 0000000..0252fc7 --- /dev/null +++ "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2775.py" @@ -0,0 +1,19 @@ +t = int(input()) +array = [[0 for col in range(15)] for row in range(15)] + +for i in range(0, 15): + array[0][i] = 1 + +for i in range(0, 15): + array[i][0] = i + + +for i in range(0, 15): + for j in range(1, 15): + array[i][j] = array[i-1][j] + array[i][j-1] + + +for i in range(t): + k = int(input()) + n = int(input()) + print(array[n][k]) \ No newline at end of file diff --git "a/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2839.py" "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2839.py" new file mode 100644 index 0000000..7113c29 --- /dev/null +++ "b/Boj/\352\270\260\353\263\270 \354\210\230\355\225\2311/2839.py" @@ -0,0 +1,20 @@ +n = int(input()) +list = [] +a = 0 +isTrue = False +while 5*a <= n: + b = (n-5*a) % 3 + if b == 0: + list.append(a+((n-5*a) // 3)) + isTrue = True + a = a + 1 + +if isTrue == False: + print(-1) + exit(0) + +min = list[0] +for i in range(len(list)): + if list[i] < min: + min = list[i] +print(min) \ No newline at end of file