top of page

게시판 게시물

hongg7438
2024년 5월 03일
In 소스 코드 제출
n = input()a = 99print('Hello, world!', n, '99 bottles of beer on the wall, 99 bottles of beer. ')print('Take one down and pass it around, ', end='')for i in range(1, 98):  a -= 1  print(a, 'bottles of beer on the wall. ')  print(a, 'bottles of beer on the wall,', a, 'bottles of beer. ')  print('Take one down and pass it around, ', end='')print('1 bottle of beer on the wall. ')print('1 bottle of beer on the wall, 1 bottle of beer. ')print('Take one down and pass it around, no more bottles of beer on the wall. ')print('No more bottles of beer on the wall, no more bottles of beer. ')print('Go to the store and buy some more, 99 bottles of beer on the wall. ')
0
0
1
hongg7438
2024년 4월 20일
In 소스 코드 제출
# data = [ # ['*x*'], # [' xx'], # ['* *'] # ] # # n = int(input()) # for i in range(len(data)): # for x in range(n): # for j in range(len(data[i])): # for y in range(n): # print(data[i][j], end='') # print() # data = [ # ['*x*'], # [' xx'], # ['* *'] # ] # # data = [ # ['*','x','*'], # [' ','x','x'], # ['*',' ','*'] # ] # # data[0] = list(data[0]) # # print(data) # # for i in range(3): # print(data[i][0]) # data = [ # ['*','x','*'], # [' ','x','x'], # ['*',' ','*'] # ] # # n = int(input()) # for i in range(len(data)): # for x in range(n): # for j in range(len(data[i])): # for y in range(n): # print(data[i][j], end='') # print() n = input() a = 99 print('Hello, world!', n, '99 bottles of beer on the wall, 99 bottles of beer. ') print('Take one down and pass it around, ', end='') for i in range(98): a -= 1 print(a,'bottles of beer on the wall. ') print(a, 'bottles of beer on the wall,', a, 'bottles of beer. ') print('Take one down and pass it around, ', end='') print('1 bottle of beer on the wall. ') print('1 bottle of beer on the wall, 1 bottle of beer. ') print('Take one down and pass it around, no more bottles of beer on the wall. ') print('No more bottles of beer on the wall, no more bottles of beer. ') print('Go to the store and buy some more, 99 bottles of beer on the wall. ')
1
0
2
hongg7438
2024년 4월 19일
In 소스 코드 제출
data = [    ['*x*'],    [' xx'],    ['* *']]a = int(input())for i in range(len(data)):    for j in range(len(data[i])):        for k in range(a):            print(data[i][j],end='')    print()
0
0
2
hongg7438
2024년 4월 13일
In 소스 코드 제출
data = [ ['*x*'], [' xx'], ['* *'] ] a = int(input()) for i in range(len(data)): for j in range(len(data[i])): for k in range(len(data[i][j])): for q in range(a): print(data[i][j], end='') print()
0
0
2
hongg7438
2024년 4월 12일
In 소스 코드 제출
data = [ ['*x*'], [' xx'], ['* *'] ] a = int(input()) for i in range(a): for j in range(a): print(data, end='') print()
0
0
2
hongg7438
2024년 4월 06일
In 소스 코드 제출
a = list(input().split()) b = list(input().split()) x1, y1, x2, y2 x3, y3, x4, y4 2 5 6 9 2 6 6 10 꼭짓점 = 같은거 2개(문자 다음 숫자가 같아야하며 x1, y1 이랑 x4, y4가 같다고 할때 x3, y3가 x2, y2 보다 커지면 FACE가 된다) 모서리 = x1, x2랑 x3, x4가 같아야됨. 그리고 y3, y4가 y1, y2보다 작아야됨. y도 똑같이 적용됨 겹치는거1 = 겹치는거2 = 나머지 = 2 5 6 9 1 3 5 8
0
0
1
hongg7438
2024년 4월 05일
In 소스 코드 제출
# a = list(input().split()) # a.sort() # print(*a) # a = [int(x) for x in input().split()] # a.sort() # print(*a) 꼭짓점 = 같은거 2개 모서리 = 같은거 1개 겹치는거1 = (else로 처리) 겹치는거2 = x1, x2, y1, y2 보다 작거나 같음(else로 처리) 나머지 = 겹치는게 없음
0
0
2
hongg7438
2024년 3월 29일
In 소스 코드 제출
#include<stdio.h> int main() { int n, i, s[51], a=0; scanf("%d", &n); for(i=0; i<n-1; i++) { scanf("%d", &s[i]); a += s[i]; } printf("%d",n*(n+1)/2-a); return 0; }
0
0
2
hongg7438
2024년 3월 23일
In 소스 코드 제출
# a = int(input()) # n = a // 3600 # b = n # x = (a % 3600) // 60 # y = a % 60 # print(b, x, y) # a = int(input()) # b = a // 3600 # n = b # x = (a % 3600) // 60 # y = a % 60 # print(n, x, y) import math # math.sqrt(10) # 3*3 = 9 # sqrt(9) > 3 # import math # # x1, y1 = map(int, input().split()) # x2, y2 = map(int, input().split()) # # p = math.sqrt((x1-x2) (x1-x2) + (y1-y2) (y1-y2)) # print("{:.2f}".format(p)) a, b = map(int, input().split()) x = 0 y = 0 n = 0 for i in range(a < b): if a >= b: a -= 2 print(a)
0
0
6
hongg7438
2024년 3월 22일
In 소스 코드 제출
# a = list(input().split()) # a.reverse() # print(*a) a, b = list(map(int, input().split())) k = 0 t = 0 x = [i for i in range(a, b + 1) if i % 3 == 0] y = [i for i in range(a, b + 1) if i % 4 == 0] for i in range(len(x)): k += x[i] for i in range(len(y)): t += y[i] print(k + (-t))
0
0
3
hongg7438
2024년 3월 15일
In 소스 코드 제출
# a = input() # for i in range(len(a)): # if a[i] != ' ': # x = ord(a[i]) - 3 # if x < ord('a'): # x += 26 # x = chr(x) # print(x, end='') # else: # print(' ', end='') # a = list(map(int, input().split())) # a.sort(reverse=True) # print(*a) # a = list(map(int, input().split())) # a.reverse() # print(*a) # a = list(map(int, input().split())) # n = sum(a) # b = n / len(a) # print(round(b, 1)) # x = 0 # y = 0 # for i in range(len(a)): # if a[i] >= b: # x += 1 # else: # y += 1 # print(x, y)
0
0
3
hongg7438
2024년 3월 02일
In 소스 코드 제출
# n = input() # a = list(map(int, input().split())) # a.sort(reverse=True) # print(a[0]) # a = input() # for i in range(len(a)): # if a[i] != ' ': # x = ord(a[i]) - 3 # if x < ord('a'): # x += 26 # x = chr(x) # print(x, end='') # else: # print(' ', end='') # # a = int(input()) # for i in range(a): # print('hello') # a, b = map(int, input().split()) # n = a / b # print(round(n, 1)) # print(int(n)) # print(a**b)
0
0
3
hongg7438
2024년 2월 24일
In 소스 코드 제출
# a = list(map(int, input().split())) # a.sort() # for i in a: # print(i, end=' ') # a1, a2 = map(int, input().split()) # b1, b2 = map(int, input().split()) # c1, c2 = map(int, input().split()) # d = a1 * a2 # e = b1 * b2 # f = c1 * c2 # # if e > d and e > f: # print(e) # elif f > d and f > e: # print(f) # else: # print(d) # for i in range(1, 101): # print(i, end=' ') # a = int(input()) # for i in range(1, a+1): # print(i, end=' ') # a = list(input()) # a.reverse() # for i in a: # print(i, end='') # a = int(input()) # for i in range(a+1): # print(i) # a = list(input().split()) # a.sort(reverse=True) # print(a[2]) # n = int(input()) # a = list(input().split()) # print(a[0], a[n//2], a[n-1]) # a, b = map(int, input().split()) # print(a ** b)
0
0
4
hongg7438
2024년 2월 23일
In 소스 코드 제출
''' a = 74 b = a // 10 c = a % 10 b >>> 7 c >>> 4 p = 90 - 74 p = 16 // 5 p = 3 > 6 q = 90 - 75 q = 15 // 5 q = 3 >5 ''' # a, b = map(int, input().split()) # n = (89 - a) // 5 # n = b + n + 1 # print(n) # a, b, c = map(int, input().split()) # n = (89 - a) // 5 # n = b + n + 1 # # if n > c: # print('win') # # elif n == c: # print('same') # # else: # print('lose') # a, b, c = map(int, input().split()) # a = a - b + c # a = a % 10 # # if a == 0: # print('대박') # # else: # print('그럭저럭') # a, b = map(int, input().split()) # if a % 2 == 0: # print('짝수+', end='') # # if a % 2 == 1: # print('홀수+', end='') # # if b % 2 == 0: # print('짝수=', end='') # # if b % 2 == 1: # print('홀수=', end='') # # if (a + b) % 2 == 0: # print('짝수', end='') # # if (a + b) % 2 == 1: # print('홀수', end='')
0
0
2
hongg7438
2024년 2월 17일
In 소스 코드 제출
# for i in range(50): # print('print', end ='') # for i in range(20): # print('hello', end='') # print(' ', end='') # for j in range(30): # print('world', end='') # a = input() # b = input() # c = input() # d = input() # print(a) # print(b) # print(c) # print(d) # a = input() # print(a) # a, b = map(int, input().split()) # print(a+b) # a, b = map(int, input().split()) # print(a, '+', b, '=', a + b) # print(a, '-', b, '=', a - b) # print(a, '*', b, '=', a * b) # print(a, '/', b, '=', a // b) # print(a, '%', b, '=', a % b) # a = int(input()) # print(a*123456789)
0
0
2
hongg7438
2024년 2월 16일
In 소스 코드 제출
a, b = map(int, input().split()) for i in range(1, a+1): if a//i==0:
0
0
2
hongg7438
2024년 2월 03일
In 소스 코드 제출
# a, b = map(int, input().split()) # x = a if a < b else b # # s = 0 # for i in range(1, x+1): # if a % i == 0 and b % i == 0: # s = i # # print(s) # # c = a // s # v = b // s # # print(c*v*s) a, b = map(int, input().split()) for i in range(1, ): print(a)
0
0
2
hongg7438
2024년 2월 02일
In 소스 코드 제출
# t = int(input()) # a = 300 # b = 60 # c = 10 # if not t%10==0: # print('-1') # else : # print(t//a, (t%a)//b, ((t%a)%b)//c)
0
0
2
hongg7438
2024년 1월 27일
In 소스 코드 제출
# a = int(input()) # b = 0 # if a <= 500: # b = a * 70 / 100 # elif 500 < a and a <= 1500: # b = 350 + (a - 500) * 40 / 100 # elif 1500 < a and a <= 4500: # b = 750 + (a - 1500) * 15 / 100 # elif 4500 < a and a <= 10000: # b = 1200 + (a - 4500) * 5 / 100 # else : # b = 1475 + (a - 10000) * 2 / 100 # print(int(b)) a = int(input()) if :
0
0
3
hongg7438
2024년 1월 12일
In 소스 코드 제출
# a = int(input()) # b = 0 # if a <= 500: # b = a * 70 / 100 # elif 500 < a and a <= 1500: # b = 350 + (a - 500) * 40 / 100 # elif 1500 < a and a <= 4500: # b = 750 + (a - 1500) * 15 / 100 # elif 4500 < a and a <= 10000: # b = 1200 + (a - 4500) * 5 / 100 # else : # b = 1475 + (a - 10000) * 2 / 100 # print('%.0f' %b) # x = input() # s = 0 # for i in range(1, len(x)): # if x[i-1] == x[i]: # s += 5 # else : # s += 10 # print(s + 10) a = input() sum = 0 for i in range(len(a)): x, y = input().split() x = int(x) y = int(y) n = y % x sum += n print(sum)
0
0
1

hongg7438

더보기
bottom of page