์ „์ฒด ๊ธ€ 56

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 10992๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 17

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. ๐Ÿ“Ž https://www.acmicpc.net/problem/10992 10992๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 17 ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. www.acmicpc.net ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ž…๋ ฅ ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ถœ๋ ฅ ์ฒซ์งธ ์ค„์— N(1 ≤ N ≤ 100)์ด ์ฃผ์–ด์ง„๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์˜ˆ์ œ ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ฝ”๋“œ n = int(input()) print(" "*(n-1),"*",sep="") for i in range(2,n): print(" "*(n-i),"*"," "*((i-1)*2-1),"*",sep="") if n>1: print("*"*(n*2-1)) ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ์ž…๋ ฅ์„ ๋ฐ›์•„ ์ •์ˆ˜๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ณ€์ˆ˜ n์—..

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 10991๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 16

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. ๐Ÿ“Ž https://www.acmicpc.net/problem/10991 10991๋ฒˆ: ๋ณ„ ์ฐ๊ธฐ - 16 ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. www.acmicpc.net ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ž…๋ ฅ ์˜ˆ์ œ๋ฅผ ๋ณด๊ณ  ๊ทœ์น™์„ ์œ ์ถ”ํ•œ ๋’ค์— ๋ณ„์„ ์ฐ์–ด ๋ณด์„ธ์š”. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ถœ๋ ฅ ์ฒซ์งธ ์ค„์— N(1 ≤ N ≤ 100)์ด ์ฃผ์–ด์ง„๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์˜ˆ์ œ ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ฝ”๋“œ n = int(input()) for i in range(1,n+1): print(" " * (n-i) + "* " * (i-1) + "*") ์‚ฌ์šฉ์ž๋กœ๋ถ€ํ„ฐ ์ž…๋ ฅ์„ ๋ฐ›์•„ ์ •์ˆ˜๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ๋ณ€์ˆ˜ n์— ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. 1๋ถ€ํ„ฐ n๊นŒ์ง€์˜ ์ˆซ์ž๋ฅผ ๋ฐ˜๋ณต์ ์œผ๋กœ ๋ณ€์ˆ˜ i์— ํ• ๋‹นํ•˜์—ฌ ๋ฐ˜๋ณต๋ฌธ์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค. ๊ฐ ๋ฐ˜๋ณต์—์„œ ์ถœ๋ ฅ๋˜๋Š”..

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 4458๋ฒˆ: ์ฒซ ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ ๋ฌธ์žฅ์„ ์ฝ์€ ๋’ค, ์ค„์˜ ์ฒซ ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พธ๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. ๐Ÿ“Ž https://www.acmicpc.net/problem/4458 4458๋ฒˆ: ์ฒซ ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ์ฒซ์งธ ์ค„์— ์ค„์˜ ์ˆ˜ N์ด ์ฃผ์–ด์ง„๋‹ค. ๋‹ค์Œ N๊ฐœ์˜ ์ค„์—๋Š” ๋ฌธ์žฅ์ด ์ฃผ์–ด์ง„๋‹ค. ๊ฐ ๋ฌธ์žฅ์— ๋“ค์–ด์žˆ๋Š” ๊ธ€์ž์˜ ์ˆ˜๋Š” 30์„ ๋„˜์ง€ ์•Š๋Š”๋‹ค. ๋ชจ๋“  ์ค„์˜ ์ฒซ ๋ฒˆ์งธ ๊ธ€์ž๋Š” ์•ŒํŒŒ๋ฒณ์ด๋‹ค. www.acmicpc.net ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ž…๋ ฅ ์ฒซ์งธ ์ค„์— ์ค„์˜ ์ˆ˜ N์ด ์ฃผ์–ด์ง„๋‹ค. ๋‹ค์Œ N๊ฐœ์˜ ์ค„์—๋Š” ๋ฌธ์žฅ์ด ์ฃผ์–ด์ง„๋‹ค. ๊ฐ ๋ฌธ์žฅ์— ๋“ค์–ด์žˆ๋Š” ๊ธ€์ž์˜ ์ˆ˜๋Š” 30์„ ๋„˜์ง€ ์•Š๋Š”๋‹ค. ๋ชจ๋“  ์ค„์˜ ์ฒซ ๋ฒˆ์งธ ๊ธ€์ž๋Š” ์•ŒํŒŒ๋ฒณ์ด๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ถœ๋ ฅ ๊ฐ ์ค„์˜ ์ฒซ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พผ๋’ค ์ถœ๋ ฅํ•œ๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์˜ˆ์ œ ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ฝ”๋“œ n = int(input()) for i in range(n..

[๋“œ๋ฆผํ•ต | ์•”ํ˜ธํ•™] SingleByteXor

๐Ÿ‘พ ๋ฌธ์ œ ์„ค๋ช… ์–ด๋Š๋‚ , ์‚ด์ธ์‚ฌ๊ฑด์ด ์ผ์–ด๋‚ฌ๋‹ค. ์‚ด์ธ ์‚ฌ๊ฑด์˜ ์œ ์ผํ•œ ์ฆ๊ฑฐ๋ฌผ์€ ์“ฐ์—ฌ์žˆ๋Š” ์ชฝ์ง€์—๋Š”, ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ ํ˜€์žˆ์—ˆ๋‹ค. 54586b6458754f7b215c7c75424f21634f744275517d6d ํฌ๋ฆฝ์ด์—๊ฒŒ ์ฃผ์–ด์ง„ ๋‹จ์„œ๋Š”, ์ชฝ์ง€์˜ ๋‚ด์šฉ๊ณผ ์ด๊ฒƒ์ด ์–ด๋–ค ๋‹จ์ผ๋ฐ”์ดํŠธ์™€ XORํ•ด์„œ ๋งŒ๋“ค์–ด์ง„ ์•”ํ˜ธ๋ผ๋Š” ๋‹จ์„œ ๋ฟ. ๊ณผ์—ฐ ํฌ๋ฆฝ์ด๋Š” ๋ฒ”์ธ์„ ์ฐพ์„ ์ˆ˜ ์žˆ์„ ๊ฒƒ์ธ๊ฐ€…! flag ํƒ€์ž…์€ DH{message}์ž…๋‹ˆ๋‹ค ๐Ÿ“Ž https://dreamhack.io/wargame/challenges/559 SingleByteXor ์–ด๋Š๋‚ , ์‚ด์ธ์‚ฌ๊ฑด์ด ์ผ์–ด๋‚ฌ๋‹ค. ์‚ด์ธ ์‚ฌ๊ฑด์˜ ์œ ์ผํ•œ ์ฆ๊ฑฐ๋ฌผ์€ ์“ฐ์—ฌ์žˆ๋Š” ์ชฝ์ง€์—๋Š”, ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ ํ˜€์žˆ์—ˆ๋‹ค. 54586b6458754f7b215c7c75424f21634f744275517d6d ํฌ๋ฆฝ์ด์—๊ฒŒ ์ฃผ์–ด์ง„ ๋‹จ..

[๋“œ๋ฆผํ•ต | ์•”ํ˜ธํ•™] Basic_Crypto1

๐Ÿ‘พ ๋ฌธ์ œ ์„ค๋ช… This Problem Basic_Crpyto(Roman emperor’s cipher) FLAG FORMAT(A~Z) and empty is “_” DH{decode_Text} ๐Ÿ“Ž https://dreamhack.io/wargame/challenges/517 Basic_Crypto1 This Problem Basic_Crpyto(Roman emperor's cipher) FLAG FORMAT(A~Z) and empty is "_" DH{decode_Text} dreamhack.io ๋ฌธ์ œ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๋Š”๋‹ค. encode.txt๋ผ๋Š” ํŒŒ์ผ์ด ๋“ฑ์žฅํ•œ๋‹ค. ์•ˆ์— ๋‚ด์šฉ์€ ์ด๋ ‡๋‹ค. EDVLF FUBSWR GUHDPKDFN ๋ฌธ์ œ์—์„œ ์นด์ด์‚ฌ๋ฅด ์•”ํ˜ธ๋ฅผ ์ด์šฉํ•˜๋ผ๊ณ  ํ–ˆ์œผ๋‹ˆ ์‚ฌ์ดํŠธ๋ฅผ ์ด์šฉํ•ด ํ•ด๋…ํ•ด๋ณด๊ฒ ๋‹ค. h..

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 5543๋ฒˆ: ์ƒ๊ทผ๋‚ ๋“œ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ ์ƒ๊ทผ๋‚ ๋“œ์—์„œ ๊ฐ€์žฅ ์ž˜ ํŒ”๋ฆฌ๋Š” ๋ฉ”๋‰ด๋Š” ์„ธํŠธ ๋ฉ”๋‰ด์ด๋‹ค. ์ฃผ๋ฌธํ•  ๋•Œ, ์ž์‹ ์ด ์›ํ•˜๋Š” ํ–„๋ฒ„๊ฑฐ์™€ ์Œ๋ฃŒ๋ฅผ ํ•˜๋‚˜์”ฉ ๊ณจ๋ผ, ์„ธํŠธ๋กœ ๊ตฌ๋งคํ•˜๋ฉด, ๊ฐ€๊ฒฉ์˜ ํ•ฉ๊ณ„์—์„œ 50์›์„ ๋บ€ ๊ฐ€๊ฒฉ์ด ์„ธํŠธ ๋ฉ”๋‰ด์˜ ๊ฐ€๊ฒฉ์ด ๋œ๋‹ค. ํ–„๋ฒ„๊ฑฐ๋Š” ์ด 3์ข…๋ฅ˜ ์ƒ๋•๋ฒ„๊ฑฐ, ์ค‘๋•๋ฒ„๊ฑฐ, ํ•˜๋•๋ฒ„๊ฑฐ๊ฐ€ ์žˆ๊ณ , ์Œ๋ฃŒ๋Š” ์ฝœ๋ผ์™€ ์‚ฌ์ด๋‹ค ๋‘ ์ข…๋ฅ˜๊ฐ€ ์žˆ๋‹ค. ํ–„๋ฒ„๊ฑฐ์™€ ์Œ๋ฃŒ์˜ ๊ฐ€๊ฒฉ์ด ์ฃผ์–ด์กŒ์„ ๋•Œ, ๊ฐ€์žฅ ์‹ผ ์„ธํŠธ ๋ฉ”๋‰ด์˜ ๊ฐ€๊ฒฉ์„ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. ๐Ÿ“Ž https://www.acmicpc.net/problem/5543 5543๋ฒˆ: ์ƒ๊ทผ๋‚ ๋“œ ์ž…๋ ฅ์€ ์ด ๋‹ค์„ฏ ์ค„์ด๋‹ค. ์ฒซ์งธ ์ค„์—๋Š” ์ƒ๋•๋ฒ„๊ฑฐ, ๋‘˜์งธ ์ค„์—๋Š” ์ค‘๋•๋ฒ„๊ฑฐ, ์…‹์งธ ์ค„์—๋Š” ํ•˜๋•๋ฒ„๊ฑฐ์˜ ๊ฐ€๊ฒฉ์ด ์ฃผ์–ด์ง„๋‹ค. ๋„ท์งธ ์ค„์—๋Š” ์ฝœ๋ผ์˜ ๊ฐ€๊ฒฉ, ๋‹ค์„ฏ์งธ ์ค„์—๋Š” ์‚ฌ์ด๋‹ค์˜ ๊ฐ€๊ฒฉ์ด ์ฃผ์–ด์ง„๋‹ค. ๋ชจ๋“  ๊ฐ€๊ฒฉ www.acmicpc.net ..

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 11945๋ฒˆ: ๋œจ๊ฑฐ์šด ๋ถ•์–ด๋นต

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ ๊ณ ๋ ค๋Œ€ํ•™๊ต์— ์ž…ํ•™ํ•œ ์ƒˆ๋‚ด๊ธฐ ํ˜ธ๋Œ์ด๋Š” ์•ˆ์•”์—ญ์„ ์ง€๋‚˜๋‹ค๊ฐ€ ํ•œ ๋ถ•์–ด๋นต ์žฅ์ˆ˜๋ฅผ ๋งŒ๋‚ฌ์–ด์š”. “์•ˆ๋…•, ์•ˆ๋…•, ์•ˆ๋…•ํ•˜์‹ญ๋‹ˆ๊นŒ, ์•„์ €์”จ! ๋ถ•์–ด๋นต ๋‘ ๊ฐœ ์ฃผ์„ธ์š”.” “์•ˆ๋…•์„ ์„ธ ๋ฒˆ ์™ธ์ณค์œผ๋‹ˆ ๋ถ•์–ด๋นต ์„ธ ๊ฐœ!” ๋ถ•์–ด๋นต ๋‘ ๊ฐœ์˜ ๊ฐ’์„ ๋‚ด๊ณ  ์„ธ ๊ฐœ๋ฅผ ๋ฐ›์€ ํ˜ธ๋Œ์ด๋Š” ๊ธฐ๋ถ„์ด ์ข‹์•˜์–ด์š”. ํ˜ธ๋Œ์ด๊ฐ€ ๋ถ•์–ด๋นต ํ•˜๋‚˜๋ฅผ ๊บผ๋‚ด์–ด ํ•œ ์ž… ๋ฌผ์—ˆ๋Š”๋ฐ…. ๋„ˆ๋ฌด ๋œจ๊ฑฐ์›Œ์„œ ๊ทธ๋งŒ ๋ถ•์–ด๋นต์„ ๋–จ์–ด๋œจ๋ฆฌ๊ณ  ๋ง์•˜์–ด์š”ใ… ใ…  ๋ถ•์–ด๋นต์€ ์ž์œ  ๋‚™ํ•˜์šด๋™์„ ํ•˜๋ฉด์„œ ๋•…์— ๋–จ์–ด์กŒ๋Š”๋ฐ ์‹ ๊ธฐํ•˜๊ฒŒ๋„ ์ขŒ์šฐ๊ฐ€ ๋’ค์ง‘ํžŒ ๋ชจ์–‘์œผ๋กœ ์ฐฉ์ง€ํ–ˆ๋‹ต๋‹ˆ๋‹ค. ํ˜ธ๋Œ์ด๊ฐ€ ๋ถ•์–ด๋นต์„ ํ•œ ์ž… ๋ฌผ๊ธฐ ์ „์˜ ๋ชจ์–‘์ด ์ž…๋ ฅ์œผ๋กœ ์ฃผ์–ด์ง€๋ฉด, ๋•…์— ๋–จ์–ด์กŒ์„ ๋•Œ์—๋Š” ์–ด๋–ค ๋ชจ์–‘์ผ์ง€ ์ถœ๋ ฅํ•˜์„ธ์š”. ๐Ÿ“Ž https://www.acmicpc.net/problem/11945 11945๋ฒˆ: ๋œจ๊ฑฐ์šด ๋ถ•์–ด๋นต ์ž…๋ ฅ์œผ๋กœ ์ฃผ์–ด์ง€๋Š” ๊ฐ ํ–‰์„ ๋ฐ˜์ „..

[๋ฐฑ์ค€/ํŒŒ์ด์ฌ] 11720๋ฒˆ: ์ˆซ์ž์˜ ํ•ฉ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ N๊ฐœ์˜ ์ˆซ์ž๊ฐ€ ๊ณต๋ฐฑ ์—†์ด ์“ฐ์—ฌ์žˆ๋‹ค. ์ด ์ˆซ์ž๋ฅผ ๋ชจ๋‘ ํ•ฉํ•ด์„œ ์ถœ๋ ฅํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ์„ ์ž‘์„ฑํ•˜์‹œ์˜ค. ๐Ÿ“Ž https://www.acmicpc.net/problem/11720 11720๋ฒˆ: ์ˆซ์ž์˜ ํ•ฉ ์ฒซ์งธ ์ค„์— ์ˆซ์ž์˜ ๊ฐœ์ˆ˜ N (1 ≤ N ≤ 100)์ด ์ฃผ์–ด์ง„๋‹ค. ๋‘˜์งธ ์ค„์— ์ˆซ์ž N๊ฐœ๊ฐ€ ๊ณต๋ฐฑ์—†์ด ์ฃผ์–ด์ง„๋‹ค. www.acmicpc.net ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ž…๋ ฅ ์ฒซ์งธ ์ค„์— ์ˆซ์ž์˜ ๊ฐœ์ˆ˜ N (1 ≤ N ≤ 100)์ด ์ฃผ์–ด์ง„๋‹ค. ๋‘˜์งธ ์ค„์— ์ˆซ์ž N๊ฐœ๊ฐ€ ๊ณต๋ฐฑ์—†์ด ์ฃผ์–ด์ง„๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ถœ๋ ฅ ์ž…๋ ฅ์œผ๋กœ ์ฃผ์–ด์ง„ ์ˆซ์ž N๊ฐœ์˜ ํ•ฉ์„ ์ถœ๋ ฅํ•œ๋‹ค. ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์˜ˆ์ œ ๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ์ฝ”๋“œ N = int(input()) numbers = input() num_list = list(map(int, numbers)) total = sum(num_list) ..

[๋“œ๋ฆผํ•ต | ์›นํ•ดํ‚น] LEVEL 1: [wargame.kr] strcmp

๐Ÿ‘พ ๋ฌธ์ œ ์„ค๋ช… if you can bypass the strcmp function, you get the flag. → strcmp ํ•จ์ˆ˜๋ฅผ ์šฐํšŒํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด, ํ”Œ๋ž˜๊ทธ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค. ๐Ÿ“Ž https://dreamhack.io/wargame/challenges/328 [wargame.kr] strcmp Description if you can bypass the strcmp function, you get the flag. dreamhack.io ์ ‘์† ์ •๋ณด์— "์„œ๋ฒ„ ์ƒ์„ฑํ•˜๊ธฐ"๋ฅผ ๋ˆŒ๋Ÿฌ์„œ ๋งํฌ์— ์ ‘์†ํ•œ๋‹ค. ์ด๋Ÿฐ ํŽ˜์ด์ง€๊ฐ€ ๋“ฑ์žฅํ•œ๋‹ค. view-source๋ฅผ ๋ˆŒ๋Ÿฌ๋ณด์ž. password : view-source strcmp ํ•จ์ˆ˜ ๋‘ ๊ฐœ์˜ ๋ฌธ์ž์—ด์„ ๋น„๊ตํ•˜๊ณ , ๋‘ ๋ฌธ์ž์—ด์ด ๋™์ผํ•˜๋ฉด 0์„ ๋ฐ˜ํ™˜ํ•˜๋ฉฐ, ์ฒซ ๋ฒˆ์งธ ๋ฌธ์ž์—ด..

[๋“œ๋ฆผํ•ต | ์›นํ•ดํ‚น] LEVEL 1: [wargame.kr] tmitter

๐Ÿ‘พ ๋ฌธ์ œ ์„ค๋ช… you need login with "admin"s id! =========================== create table tmitter_user( idx int auto_increment primary key, id char(32), ps char(32) ); ๐Ÿ“Ž https://dreamhack.io/wargame/challenges/343 [wargame.kr] tmitter Description you need login with "admin"s id! create table tmitter_user( idx int auto_increment primary key, id char(32), ps char(32) ); dreamhack.io ์ ‘์† ์ •๋ณด์— "์„œ๋ฒ„ ์ƒ์„ฑํ•˜๊ธฐ"๋ฅผ ๋ˆŒ๋Ÿฌ์„œ ..

728x90