top of page

소스 코드 제출

공개·회원 52명

2025.08.10


'''
a,b,c=map(int,input().split())
if a>=b:
    M=int(a)
    m=int(b)
else:
    M=int(b)
    m=int(a)
if M<c:
    print(M)
else :
    if m>c :
        print(m)
    else :
        print(c)
h,m=map(int,input().split())
n=m-30
if n<0:
    if h==0:
        print(23,n+60,sep=" ")
    else:
        print(h-1,n+60,sep=" ")
else:
    print(h,n,sep=" ")
n=int(input())
a=int(n//10)
b=int(n%10)
m=2*(10*b+a)
print(m%100)
if (m%100)>50:
    print('OH MY GOD')
else:
    print('GOOD')
a,b=map(int,input().split())
if a+b>a-b:
    m=float(a+b)
else:
    m=float(a-b)
if m<b-a:
    m=b-a
if m<a*b:
    m=a*b
if m<a/b:
    m=a/b
if m<b/a:
    m=b/a
if m<a**b:
    m=a**b
if m<b**a:
    m=b**a
print(format(m,".6f"))
a,b,c=map(int,input().split())
if a+b>c and b+c>a and c+a>b:
    print("yes")
else :
    print("no")
y,m=map(int,input().split())
if m==1 or m==3 or m==5 or m==7 or m==8 or m==10 or m==12:
    print('31')
elif m==4 or m==6 or m==9 or m==11:
    print('30')
else:
    if y%4!=0 or (y%100==0 and y%400!=0):
        print('28')
    else:
        print('29')
a,b,c=map(int,input().split())
if a==b and b==c:
    print("정삼각형")
elif a+b<=c:
    print("삼각형아님")
elif a==b or b==c:
    print("이등변삼각형")
elif a*a+b*b==c*c:
    print("직각삼각형")
else:
    print("삼각형")

'''

'''
반복문

for
while

while 조건식 : 
    반복할명령
    
range(5)        -> 0 이상    5미만     1간격의 정수들 -> 0 1 2 3 4
range(2,7)      -> 2 이상     7미만     1간격의 정수들 -> 2 3 4 5 6
range(2,10,2)   -> 2 이상    10미만     2간격의 정수들 -> 2 4 6 8 

range(5,0,-1)   -> 5 이하     0초과     -1간격의 정수들 -> 5 4 3 2 1

break       반복문아예끝내기
continue    건너뛰기

'''

# for i in [0,1,2,3,4] :
# for i in range(5) :
#     print(i,end=' ')
#     i=i+1   #소용없음!!!

'''
n=int(input())
for i in range(1,n+1):
    print(i,end=" ")
a,b=map(int,input().split())
if a%2==1:
    for i in range(a,b+1,2):
        print(i,end=' ')
else:
    for i in range(a+1,b+1,2):
        print(i,end=' ')
    
'''

n=int(input())
sum=int()
for i in range(1,n+1):
    sum+=i
print(sum)

3회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page