# # c,d = input().split()
# #
# # c=float(c)
# #
# # d=float(d)
# #
# # e=(c-100)*0.9
# #
# # q=(d-e)*100/e
# # if q<=10 :
# # print("정상")
# # elif q>10 and q<=20 :
# # print("과체중")
# # else :
# # print("비만")
# # c = input()
# # c = int(c)
# # d = c % 10
# # if d == 1 :
# # if c == 11 :
# # print("%dth"%c)
# # else :
# # print("%dst"%c)
# # elif d == 2 :
# # if c == 12 :
# # print("%dth"%c)
# # else :
# # print("%dnd"%c)
# # elif d == 3 :
# # if c == 13 :
# # print("%dth"%c)
# # else :
# # print("%drd"%c)
# # else :
# # print("%dth"%c)
# # d,c = input().split()
# # c=int(c)
# # d=int(d)
# # if c==2 :
# # if d%400==0 or d%4==0 and d%100!=0 :
# # print("29")
# # else :
# # print("28")
# # elif c==4 or c==6 or c==9 or c==11 :
# # print("30")
# # else :
# # print("31")
# # c,d,e = input().split()
# # c=int(c)
# # d=int(d)
# # e=int(e)
# # if c<=170 :
# # print("CRASH %d"%c)
# # elif d<=170 :
# # print("CRASH %d"%d)
# # elif e<=170 :
# # print("CRASH %d"%e)
# # else :
# # print("PASS")
# # c,d = input().split()
# # c=int(c)
# # d=int(d)
# # if c%d==0 :
# # e=c/d
# # print("%d*%d=%d"%(d,e,c))
# # elif d%c==0 :
# # e=d/c
# # print("%d*%d=%d"%(c,e,d))
# # else :
# # print("none")
# # c,d = input().split()
# # c=float(c)
# # d=float(d)
# # if c<150 :
# # e=c-100
# # elif c>=160 :
# # e=(c-100)*0.9
# # else :
# # e=(c-150)/2+50
# # q=(d-e)*100/e
# # if q<=10 :
# # print("정상")
# # elif q>10 and q<=20 :
# # print("과체중")
# # else :
# # print("비만")
# # c,d,e = input().split()
# # c=int(c)
# # d=int(d)
# # e=int(e)
# # q=c-d+e
# # w=q%10
# # if w==0 :
# # print("대박")
# # else :
# # print("그럭저럭")
# # c = input()
# # c=int(c)
# # # e : c의 일의자리수, w : c의 십의자리수
# # # 원래 c는 w*10 + e -> 뒤집고싶어? e * 10 + w
# # e=c%10
# # w=c//10
# # q=e*10+w
# # d=q*2
# # if d>100 :
# # d=d-100
# # print("%d"%d)
# # if d<=50 :
# # print("GOOD")
# # else :
# # print("OH MY GOD")
# # c,d,e = input().split()
# # c=int(c)
# # d=int(d)
# # e=int(e)
# # w=c+d+e
# # q=w%1000
# # a=q//100
# # if a%2==0 :
# # print("대박")
# # else :
# # print("그럭저럭")
#
# # c,d,e = input().split()
# # c=int(c)
# # d=int(d)
# # e=int(e)
# # if c > d :
# # print("do not advertise")
# # elif d > c :
# # q=d-e-c
# # if q > 0 :
# # print("advertise")
# # else :
# # print("does not matter")
# # elif d == c :
# # print("does not matter")
# # a,b,c = input().split()
# # a=int(a)
# # b=int(b)
# # c=int(c)
# # if a+b <= c :
# # print("삼각형아님")
# # elif a==b==c :
# # print("정삼각형")
# # elif a==b or b==c or a==c :
# # print("이등변삼각형")
# # elif a*a + b*b == c*c :
# # print("직각삼각형")
# # else :
# # print("삼각형")
#
# '''
# 반복문
# for, while
#
# '''
#
# # while 조건식 :
# #반복할 명령
# # if 어쩌구 :
# # break or continue
# # break 아예 반복문 탈출
# # continue 반복하던것만 그만두고
#
# # for i in [1,2,3,4] :
#
# # for i in range(5) :
# # print(i)
#
# # range(5) 0이상 5미만 1간격 [0,1,2,3,4]
# # range(1,6) 1이상 6미만 1간격 [1,2,3,4,5]
# # range(1,6,2) 1이상 6미만 2간격 [1,3,5]
# # range(5,0,-1) 5이하 0초과 -1간격 [5,4,3,2,1]
# # for i in range(1,101,1) :
# # print(i )
# '''
# 풀다가 어려워서 이따가 풀 문제
# c,d = input().split()
# c=int(c)
# d=int(d)
# if a>b :
# for i in range(d, c + 1, 1):
# print(i )
# else :
# for i in range(c,d+1,1) :
# print(i )
# '''
# # c = input()
# # c = int(c)
# # d=0
# # for i in range(1,c+1,1) :
# # d=d+i
# # print(d)
# # a,b=input().split()
# # a=int(a)
# # b=int(b)
# # c=0
# # for i in range(a,b+1,1) :
# # if i%2!=0 :
# # print(i )
# # c,d = input().split()
# # c=int(c)
# # d=int(d)
# # e=0
# # for i in range(c,d+1,1) :
# # if i%3==0 :
# # e=e+i
# # print(e)
# # import time
# # c = input()
# # c = int(c)
# # for i in range(1,c+1,1) :
# # time.sleep(1)
# # print(i)
# # print("시간이 끝났습니다!")
#
# # a, b, c, n = map(int, input().split())
# # e = a
# # for i in range(n-1) :
# # e = e*b+c
# # print(e)
#
# # n = input()
# # n = int(n)
# # c=0
# # for i in range(1,n+1) :
# # if i%10==1 :
# # c=c+1
# # print(c)
#
# # c = input()
# # c = int(c)
# # for i in range(1,c+1) :
# # if c%i==0 :
# # print(i ,end=' ')
# # c,d=input().split()
# # c=int(c)
# # d=int(d)
# # e=0
# # for i in range(c,d+1) :
# # if i%2==0 :
# # e=e-i
# # else :
# # e=e+i
# # print(e)
#
#
#
# def run_command(cmd):
# args = cmd.strip().split()
# if not args:
# print("⚠️ 명령어를 입력하세요.")
# return
#
# command = args[0].lstrip("/").lower()
# params = args[1:]
#
# # --- /weather ---
# if command == "weather":
# if len(params) < 1:
# print("❌ /weather [clear|rain|thunder]")
# elif params[0] in ("clear", "rain", "thunder"):
# print(f"날씨가 {params[0]}로 변경되었습니다.")
# else:
# print("❌ 알 수 없는 날씨 타입")
#
# # --- /time ---
# elif command == "time":
# if len(params) >= 2 and params[0] == "set":
# print(f"시간이 {params[1]}으로 설정되었습니다.")
# elif len(params) >= 2 and params[0] == "add":
# print(f"시간이 {params[1]}만큼 추가되었습니다.")
# else:
# print("❌ /time set [값] or /time add [값]")
#
# # --- /tp ---
# elif command == "tp":
# if len(params) == 1:
# print(f"{params[0]}가 순간이동했습니다.")
# elif len(params) == 4:
# print(f"{params[0]}가 좌표 ({params[1]}, {params[2]}, {params[3]})로 이동했습니다.")
# else:
# print("❌ /tp [대상] 또는 /tp [대상] [x] [y] [z]")
#
# # --- /give ---
# elif command == "give":
# if len(params) >= 2:
# count = params[2] if len(params) > 2 else "1"
# print(f"{params[0]}에게 아이템 '{params[1]}' {count}개 지급.")
# else:
# print("❌ /give [대상] [아이템] [수량?]")
#
# # --- /effect ---
# elif command == "effect":
# if len(params) >= 2 and params[0] == "clear":
# target = params[1]
# print(f"{target}의 효과가 제거됨.")
# elif len(params) >= 4 and params[0] == "give":
# target = params[1]
# effect = params[2]
# duration = params[3]
# amplifier = params[4] if len(params) > 4 else "1"
# print(f"{target}에게 '{effect}' 효과 {duration}초, 레벨 {amplifier} 적용.")
# else:
# print("❌ /effect give [대상] [효과] [시간] [강도?] 또는 /effect clear [대상]")
#
# # --- /summon ---
# elif command == "summon":
# entity = params[0] if len(params) > 0 else "알 수 없는 엔티티"
# coords = params[1:4]
# coord_str = f"좌표 {' '.join(coords)}" if coords else "현재 위치"
# print(f"'{entity}' 엔티티가 {coord_str}에 소환됨.")
#
# # --- /kill ---
# elif command == "kill":
# target = params[0] if params else "자신"
# print(f"{target}가 제거됨.")
#
# # --- /gamemode ---
# elif command == "gamemode":
# if len(params) >= 1:
# mode_dict = {
# "survival": "서바이벌",
# "creative": "크리에이티브",
# "adventure": "어드벤처",
# "spectator": "관전 모드",
# "s": "서바이벌",
# "c": "크리에이티브",
# "a": "어드벤처",
# "sp": "관전 모드"
# }
# mode = mode_dict.get(params[0].lower(), params[0])
# target = params[1] if len(params) > 1 else "자신"
# print(f"{target}의 게임 모드가 '{mode}'로 변경됨.")
# else:
# print("❌ /gamemode [모드] [대상?]")
#
# # --- /clear ---
# elif command == "clear":
# target = params[0] if params else "자신"
# item = params[1] if len(params) > 1 else "모든 아이템"
# print(f"{target}의 {item} 인벤토리에서 제거됨.")
#
# # --- /say ---
# elif command == "say":
# if params:
# print(f"[서버] {' '.join(params)}")
# else:
# print("❌ /say [메시지]")
#
# # --- /title ---
# elif command == "title":
# if len(params) >= 3:
# target = params[0]
# action = params[1]
# text = " ".join(params[2:])
# print(f"{target}에게 '{action}' 타이틀: \"{text}\" 표시됨.")
# else:
# print("❌ /title [대상] [action] [텍스트]")
#
# # --- /playsound ---
# elif command == "playsound":
# if len(params) >= 2:
# sound = params[0]
# target = params[1]
# coords = params[2:5]
# coord_str = " ".join(coords) if coords else "현재 위치"
# print(f"{target}에게 '{sound}' 소리가 {coord_str}에서 재생됨.")
# else:
# print("❌ /playsound [사운드] [대상] [x? y? z?]")
#
# # --- /particle ---
# elif command == "particle":
# if len(params) >= 1:
# particle = params[0]
# print(f"파티클 '{particle}' 효과 생성됨.")
# else:
# print("❌ /particle [이펙트 이름]")
#
# # --- /scoreboard ---
# elif command == "scoreboard":
# if len(params) >= 1:
# print(f"scoreboard 명령 '{params[0]}' 실행됨: {' '.join(params[1:])}")
# else:
# print("❌ /scoreboard [action] ...")
#
# # --- /msg, /tell, /whisper ---
# elif command in ("msg", "tell", "whisper"):
# if len(params) >= 2:
# target = params[0]
# message = " ".join(params[1:])
# print(f"[귓속말] {target}: {message}")
# else:
# print(f"❌ /{command} [대상] [메시지]")
#
# # --- /mute ---
# elif command == "mute":
# if len(params) >= 1:
# print(f"{params[0]} 음소거됨.")
# else:
# print("❌ /mute [대상]")
#
# # --- /unmute ---
# elif command == "unmute":
# if len(params) >= 1:
# print(f"{params[0]} 음소거 해제됨.")
# else:
# print("❌ /unmute [대상]")
#
# # --- /fill ---
# elif command == "fill":
# if len(params) >= 7:
# print(f"({params[0]}, {params[1]}, {params[2]}) ~ ({params[3]}, {params[4]}, {params[5]}) 사이 '{params[6]}' 블럭으로 채움.")
# else:
# print("❌ /fill x1 y1 z1 x2 y2 z2 [블럭]")
#
# # --- /clone ---
# elif command == "clone":
# if len(params) >= 9:
# print(f"({params[0]}, {params[1]}, {params[2]}) ~ ({params[3]}, {params[4]}, {params[5]}) 복제 후 ({params[6]}, {params[7]}, {params[8]})에 붙여넣음.")
# else:
# print("❌ /clone x1 y1 z1 x2 y2 z2 x y z")
#
# # --- /loot ---
# elif command == "loot":
# print(f"loot 명령어 실행됨: {' '.join(params)}")
#
# # --- /advancement ---
# elif command == "advancement":
# print(f"advancement 명령어 실행됨: {' '.join(params)}")
#
# # --- /bossbar ---
# elif command == "bossbar":
# print(f"bossbar 명령어 실행됨: {' '.join(params)}")
#
# # --- /function ---
# elif command == "function":
# print(f"function 명령어 실행됨: {' '.join(params)}")
#
# # --- /datapack ---
# elif command == "datapack":
# print(f"datapack 명령어 실행됨: {' '.join(params)}")
#
# # --- /execute ---
# elif command == "execute":
# print(f"execute 명령어 실행됨: {' '.join(params)}")
#
# # --- /trade --- 주민 거래 시뮬레이션 추가
# elif command == "trade":
# if len(params) < 3 or len(params) % 2 == 0:
# print("❌ /trade [주민이름] [아이템1] [가격1] [아이템2] [가격2] ... 형태로 입력하세요.")
# else:
# villager = params[0]
# trades = params[1:]
# print(f"{villager} 주민과의 거래 목록:")
# for i in range(0, len(trades), 2):
# item = trades[i]
# price = trades[i+1]
# print(f" - {item} : {price} 개")
#
# else:
# print(f"❌ 지원하지 않는 명령어: /{command}")
#
#
# if __name__ == "__main__":
# print("마인크래프트 명령어 시뮬레이터 시작 (exit, quit 입력시 종료)")
# while True:
# user_input = input(">> ").strip()
# if user_input.lower() in ("exit", "quit"):
# print("시뮬레이터 종료")
# n = int((input()))
# arr=list(map(int,input().split()))
# for i in range(len(arr)) :
# print("%d:"%(i+1),end=' ')
# for j in range(len(arr)) :
# if arr[i]<arr[j] :
# print("<",end=' ')
# elif arr[i]>arr[j] :
# print(">",end=' ')
# elif j==i :
# continue
# else :
# print("=",end=' ')
# print()
n = int((input()))
arr=list(map(int,input().split()))
for i in range(len(arr)) :
i=i+1
j=i
for j in range(len(arr)) :
print("%d"%(arr[j]),end=' ')
j=j+1
if j==i :
j=0
if j==len(arr) :
print()
top of page

실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
20250709
20250709
댓글 0개
좋아요
댓글(0)
더 이상 게시물에 대한 댓글 기능이 지원되지 않습니다. 자세한 사항은 사이트 소유자에게 문의하세요.
bottom of page


