# x, y = input().split()
# x = int(x)
# y = int(y)
#
# if y >= 30:
# print(x, y-30)
# else:
# if x == 0:
# print(23, y+30)
# else:
# print(x-1, y+30)
# x, y = input().split()
# x = int(x)
# y = int(y)
#
# t = (x + 24) * 60 + y - 30
# print(t/60, t%60)
#a=현재 경기 타임, b=1반득점, c=2반득점
#1반 스코어=b+(90-a)//5
#2반 스코어=7
# a,b,c=input().split()
# a=int(a)
# b=int(b)
# c=int(c)
# t = 0
# if (90-a)%5==0:
# t = b+(90-a)//5
# else:
# t = b+((90-a)//5)+1
# if t > c:
# print("win")
# elif t==c:
# print("same")
# else:
# print("lose")
# 반복문
# inclusive, exclusive
# for i in range(5):
# print(i, end=' ')
# print()
#
# for i in range(1, 5+1):
# print(i, end=' ')
# print()
#
# for i in range(0, 10, 2):
# print(i, end=' ')
# print()
#
# for i in range(2, 20+1):
# if i % 2 == 0:
# print(i, end=' ')
# print()
#
# for i in range(20, 2, -1):
# print(i, end=' ')
# print()
# n = int(input())
# data = input().split()
# print(data, type(data))
#
# for i in range(len(data)):
# data[i] = int(data[i])
#
# print(data, type(data))
# for i in range(1,101):
# print(i, end=' ')
# n=int(input())
# for i in range(1,n+1):
# print(i, end=' ')
# a,b=input().split()
# a=int(a)
# b = int(b)
# if a < b:
# for i in range(a,b+1):
# print(i, end=' ')
# else:
# for i in range(b, a+1):
# print(i, end=' ')
# n=int(input())
# s = 0
# for i in range(1,n+1):
# s += i
# print(s)
# n=int(input())
# s=0
# for i in range(1, n+1):
# if i%2==0:
# s+=i
# print(s)
# a,b=input().split()
# a=int(a)
# b=int(b)
# s=0
# for i in range(a,b+1):
# if i%3==0:
# s+=i
# print(s)
# n = int(input())
# data = input().split()
# s = 0
# for i in range(len(data)):
# data[i] = int(data[i])
# s += data[i]
#
# print(s)
# data = input().split()
# for i in range(0, 10):
# if int(data[i])%5==0:
# print(data[i])
# break
# elif int(data[i])%5!=0:
# print("0")
# break
# n = input()
# n = int(n)
# sum = 0
# data = input().split()
# for i in range(0, n):
# sum = sum + int(data[i])
# print(sum)
# n = input()
# n = int(n)
# sum = 0
# k = input().split()
# for i in range(0, n):
# if int(k[i])%2==1:
# sum = sum + 1
# print(sum)
# n = input()
# n = int(n)
# sum = 0
#
# for i in range(1, n+1):
# if i%10==1:
# sum = sum + 1
# print(sum)
# k, h = input().split()
# k = int(k)
# h = int(h)
# if k%2==1:
# a = (k+1)/2
# elif k%2==0:
# a = k/2*10
# if h%2==1:
# b = (h+1)/2
# elif h%2==0:
# b = h/2*10
# print(int(a+b))
# n = input()
# n = int(n)
# sum = 0
# for i in range(1,n+1):
# if n%i==0:
# sum = sum + 1
# if sum>=3:
# print("not prime")
# else:
# print("prime")
# n = input()
# n = int(n)
# sum = 1
# for i in range(1,n+1):
# sum = sum * i
# print(sum)
# n = input()
# n = int(n)
# sum = 0
# while True:
# if n<10:
# break
#
# n = n/10
# sum = sum + 1
#
# print(sum+1)
# a, b = input().split()
# a = int(a)
# b = int(b)
# if a%2==1:
# for i in range(a, b+1):
# if b+1-a%2==0:
# c = -((b+1-a)/2)
# else:
# c = -((b-a)/2)+b
# elif a%2==0:
# for i in range(a, b+1):
# if b + 1 - a % 2 == 0:
# c = ((b+1-a)/2)
# else:
# c = ((b-a)/2)-b
# print(int(c))
# n = input()
# n = int(n)
# sum = 0
# for i in range(2,n):
# if n%i==0:
# sum = sum + 1
# a = i
# if sum>=3:
# print(a, int(n / a), sep=' ')
# else:
# print("wrong number")
# max = -1000000
# min = 1000000
# for i in range(0, 5):
# x = int(input())
# if max < x:
# max = x
# if min > x:
# min = x
# print(max, min, sep = '\n')
# x = input()
# for i in range(len(x)):
# print(ord('x')+3)
a, b = input().split()
a = int(a)
b = int(b)
sum = 0
for i in range (a, b+1):
if i%2==0:
print(-i, sep='')
sum = sum - i
elif i%2==1:
print(i, sep='')
sum = sum + i
top of page
기능을 테스트하려면 라이브 사이트로 이동하세요.
230819
230819
댓글 2개
좋아요
댓글(2)
bottom of page
대회 화이팅!! :)