๋‚ด ์ธ์ƒ์—์„œ ๋ฏฟ์„ ๊ฑด ์˜ค์ง ๋‚˜ ์ž์‹ ๋ฟ!

The only one you can truly trust is yourself.

๊ฒŒ์ž„ ํ”„๋กœ๊ทธ๋ž˜๋ฐ/Python ํ”„๋กœ๊ทธ๋ž˜๋ฐ

[PCCP ๋ชจ์˜๊ณ ์‚ฌ#2] ์นดํŽ˜ ํ™•์žฅ (ํ)

๐ŸŽฎinspirer9 2023. 3. 11. 09:00
728x90
๋ฐ˜์‘ํ˜•

๋ฌธ์ œ ์„ค๋ช…

์ฃผ์›์ด๋Š” ์นดํŽ˜๋ฅผ ์šด์˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ์›์ด์˜ ์นดํŽ˜๋Š” ๋ง›์ง‘์œผ๋กœ ์†Œ๋ฌธ๋‚˜์„œ ํ•ญ์ƒ ์ค„์ด ๋Š์ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์นดํŽ˜๊ฐ€ ํ˜‘์†Œํ•˜์—ฌ ์ปคํ”ผ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์†๋‹˜๋“ค์€ ์ข…์ข… ๋ถˆ๋งŒ์„ ํ† ๋กœํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ์›์ด๋Š” ์นดํŽ˜๋ฅผ ํ™•์žฅํ•˜๊ธฐ๋กœ ํ•˜๊ณ , ์–ผ๋งˆ๋‚˜ ๋งŽ์€ ์†๋‹˜๋“ค์ด ๋™์‹œ์— ์นดํŽ˜์— ๋จธ๋ฌด๋Š”์ง€ ํ™•์ธํ•ด๋ณด๋ ค ํ•ฉ๋‹ˆ๋‹ค.

์ฃผ์›์ด๋„ค ์นดํŽ˜์—๋Š” ์˜์—…์„ ์‹œ์ž‘ํ•˜์ž๋งˆ์ž 0์ดˆ์— ์†๋‹˜ ํ•œ ๋ช…์ด ๊ฐ€๊ฒŒ์— ๋„์ฐฉํ•˜๊ณ , ์ •ํ™•ํžˆ k์ดˆ๋งˆ๋‹ค ์ƒˆ๋กœ์šด ์†๋‹˜ ํ•œ ๋ช…์ด ์นดํŽ˜์— ์™€์„œ ์ค„์„ ์„ญ๋‹ˆ๋‹ค. ์†๋‹˜๋“ค์€ ํ‚ค์˜ค์Šคํฌ๋ฅผ ํ†ตํ•ด ์ฃผ๋ฌธํ•˜๊ณ , ์ฃผ์›์ด๋Š” ์ฃผ๋ฌธ๋ฐ›์€ ์ˆœ์„œ๋Œ€๋กœ ์Œ๋ฃŒ๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค. ์ฃผ์›์ด๋Š” ์Œ๋ฃŒ๋ฅผ ํ•œ ๋ฒˆ์— ํ•˜๋‚˜์”ฉ ๋งŒ๋“ค๋ฉฐ, ์ง€๊ธˆ ๋งŒ๋“ค๊ณ  ์žˆ๋Š” ์Œ๋ฃŒ๋ฅผ ๋‹ค ๋งŒ๋“ค๋ฉด ๋‹ค์Œ ์Œ๋ฃŒ๋ฅผ ๋งŒ๋“ค๊ธฐ ์‹œ์ž‘ํ•ฉ๋‹ˆ๋‹ค. ์†๋‹˜์€ ์ž์‹ ์ด ์ฃผ๋ฌธํ•œ ์Œ๋ฃŒ๋ฅผ ๋ฐ›์ž๋งˆ์ž ์นดํŽ˜๋ฅผ ๋‚˜๊ฐ‘๋‹ˆ๋‹ค. ์ฃผ์›์ด๋„ค ์นดํŽ˜์—๋Š” ์—ฌ๋Ÿฌ ์ข…๋ฅ˜์˜ ์Œ๋ฃŒ๋ฅผ ํŒ๋งคํ•˜๊ณ  ์žˆ๋Š”๋ฐ ๊ฐ ์Œ๋ฃŒ๋“ค์€ 0๋ฒˆ๋ถ€ํ„ฐ ์ฐจ๋ก€๋Œ€๋กœ ๋ฒˆํ˜ธ๊ฐ€ ์ง€์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ์ฃผ์›์ด๊ฐ€ ๊ฐ™์€ ์ข…๋ฅ˜์˜ ์Œ๋ฃŒ๋ฅผ ๋งŒ๋“œ๋Š”๋ฐ ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„์€ ํ•ญ์ƒ ๋™์ผํ•ฉ๋‹ˆ๋‹ค.

์ฃผ์›์ด๋Š” ์˜ค๋Š˜ ์ฃผ๋ฌธ๋ฐ›์€ ์Œ๋ฃŒ ๋ชฉ๋ก์„ ์ด์šฉํ•˜์—ฌ, ์นดํŽ˜์—์„œ ์†๋‹˜๋“ค์ด ๋™์‹œ์— ์ตœ๋Œ€ ๋ช‡ ๋ช…์ด ๋จธ๋ฌผ๋ €๋Š”์ง€ ์•Œ๊ณ  ์‹ถ์Šต๋‹ˆ๋‹ค. ์†๋‹˜๋“ค์ด ์นดํŽ˜์— ๋„์ฐฉํ•˜์—ฌ ์ฃผ๋ฌธํ•˜๊ธฐ๊นŒ์ง€ ๊ฑธ๋ฆฐ ์‹œ๊ฐ„๊ณผ ์Œ๋ฃŒ๋ฅผ ๋ฐ›์€ ํ›„ ์นดํŽ˜๋ฅผ ๋‚˜๊ฐ€๋Š” ์‹œ๊ฐ„์€ ์Œ๋ฃŒ ์ œ์กฐ ์‹œ๊ฐ„์— ๋น„ํ•ด ๋Œ€๋‹จํžˆ ์งง๊ธฐ ๋•Œ๋ฌธ์— ๋ฌด์‹œํ•ฉ๋‹ˆ๋‹ค. ํ•œ ์†๋‹˜์ด ์นดํŽ˜์—์„œ ๋‚˜๊ฐ๊ณผ ๋™์‹œ์— ๋‹ค๋ฅธ ์†๋‹˜์ด ์นดํŽ˜์— ๋“ค์–ด์˜ฌ ๊ฒฝ์šฐ, ๋‚˜๊ฐ€๋Š” ์†๋‹˜์ด ๋จผ์ € ํ‡ด์žฅํ•œ ๋‹ค์Œ ๋“ค์–ด์˜ค๋Š” ์†๋‹˜์ด ์ž…์žฅํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด, ์ฃผ์›์ด๋„ค ์นดํŽ˜์—์„œ ์„ธ ์ข…๋ฅ˜์˜ ์Œ๋ฃŒ๋ฅผ ํŒ๋งคํ•˜๊ณ  ์ œ์กฐ ์‹œ๊ฐ„์€ 0๋ฒˆ ์Œ๋ฃŒ๊ฐ€ 5์ดˆ, 1๋ฒˆ ์Œ๋ฃŒ๊ฐ€ 12์ดˆ, 2๋ฒˆ ์Œ๋ฃŒ๋Š” 30์ดˆ ์†Œ์š”๋œ๋‹ค๊ณ  ๊ฐ€์ •ํ•ฉ๋‹ˆ๋‹ค. ์˜์—…์„ ์‹œ์ž‘ํ•œ ๋’ค 4๋ช…์˜ ์†๋‹˜์ด ๊ฐ๊ฐ 0์ดˆ, 10์ดˆ, 20์ดˆ, 30์ดˆ์— ์นดํŽ˜์— ๋„์ฐฉํ•˜์—ฌ ์ˆœ์„œ๋Œ€๋กœ 1๋ฒˆ, 2๋ฒˆ, 0๋ฒˆ, 1๋ฒˆ ์Œ๋ฃŒ๋ฅผ ์ฃผ๋ฌธํ•œ ๊ฒฝ์šฐ, ์˜์—… ์‹œ์ž‘ ํ›„ 30์ดˆ๋ถ€ํ„ฐ 42์ดˆ ์‚ฌ์ด์— 3๋ช…์˜ ์†๋‹˜์ด ๊ธฐ๋‹ค๋ฆฌ๊ฒŒ ๋˜๊ณ , ์ด๋•Œ๊ฐ€ ๋™์‹œ์— ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์†๋‹˜์ด ๊ฐ€์žฅ ๋งŽ์€ ์‹œ๊ฐ„์ž…๋‹ˆ๋‹ค.

์ฃผ์›์ด๋„ค ์นดํŽ˜์—์„œ ํŒ๋งคํ•˜๋Š” ๊ฐ ์Œ๋ฃŒ๋“ค์˜ ์ œ์กฐ ์‹œ๊ฐ„์„ ๋‹ด์€ ์ •์ˆ˜ ๋ฐฐ์—ด menu์™€ ์˜ค๋Š˜ ์†๋‹˜๋“ค์ด ์ฃผ๋ฌธํ•œ ์Œ๋ฃŒ๊ฐ€ ์ˆœ์„œ๋Œ€๋กœ ์ ํžŒ ๋ฐฐ์—ด order, ์ƒˆ๋กœ์šด ํ•œ ๋ช…์˜ ์†๋‹˜์ด ๋ฐฉ๋ฌธํ•˜๋Š”๋ฐ ๊ฑธ๋ฆฌ๋Š” ์‹œ๊ฐ„์ธ k๊ฐ€ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์ฃผ์–ด์ง‘๋‹ˆ๋‹ค. ์˜ค๋Š˜ ์นดํŽ˜์— ๋™์‹œ์— ์กด์žฌํ•œ ์†๋‹˜ ์ˆ˜์˜ ์ตœ๋Œ“๊ฐ’์„ return ํ•˜๋„๋ก solution ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.

์ œํ•œ ์‚ฌํ•ญ

  • 1 ≤ menu์˜ ๊ธธ์ด ≤ 100
    • menu[i]๋Š” i๋ฒˆ ์Œ๋ฃŒ์˜ ์ œ์กฐ ์‹œ๊ฐ„์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค.
    • 1 ≤ menu์˜ ์›์†Œ ≤ 100
  • 1 ≤ order์˜ ๊ธธ์ด ≤ 10,000
    • order[i]๋Š” i๋ฒˆ์งธ ์†๋‹˜์ด ์ฃผ๋ฌธํ•œ ์Œ๋ฃŒ์˜ ๋ฒˆํ˜ธ์ž…๋‹ˆ๋‹ค.
    • 0 ≤ order์˜ ์›์†Œ < menu์˜ ๊ธธ์ด
  • 1 ≤ k ≤ 100

์ž…์ถœ๋ ฅ ์˜ˆ

menu order k result
[5, 12, 30] [1, 2, 0, 1] 10 3
[5, 12, 30] [2, 1, 0, 0, 0, 1, 0] 10 4
[5] [0, 0, 0, 0, 0] 5 1

์ž…์ถœ๋ ฅ ์˜ˆ ์„ค๋ช…

์ž…์ถœ๋ ฅ ์˜ˆ #1

  • ๋ณธ๋ฌธ์—์„œ ์„ค๋ช…ํ•œ ์˜ˆ์‹œ์ž…๋‹ˆ๋‹ค.

์ž…์ถœ๋ ฅ ์˜ˆ #2

  • ์˜์—… ์‹œ์ž‘ ํ›„ ๊ฐ€์žฅ ๋จผ์ € ๋„์ฐฉํ•œ ์†๋‹˜์€ 0์ดˆ์— ์ฃผ๋ฌธ์„ ๋ฐ›๊ณ  30์ดˆ์— ์นดํŽ˜๋ฅผ ๋‚˜๊ฐ‘๋‹ˆ๋‹ค. ์˜์—… ์‹œ์ž‘ ํ›„ 10์ดˆ์— ๋„์ฐฉํ•œ ์†๋‹˜์€ 42์ดˆ์— ์Œ๋ฃŒ๋ฅผ ๋ฐ›๊ณ  ์นดํŽ˜๋ฅผ ๋‚˜๊ฐ€๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ๊ทธ ์‚ฌ์ด 20์ดˆ, 30์ดˆ, 40์ดˆ์— ์†๋‹˜๋“ค์ด ๊ฐ๊ฐ ๋“ค์–ด์™€, 40์ดˆ~42์ดˆ ์‚ฌ์ด์— ์ด 4๋ช…์˜ ์†๋‹˜๋“ค์ด ๋™์‹œ์— ์นดํŽ˜์—์„œ ๊ธฐ๋‹ค๋ฆฌ๊ณ , ์ด ์ˆ˜๊ฐ€ ๋™์‹œ์— ๊ธฐ๋‹ค๋ฆฌ๋Š” ์†๋‹˜ ์ˆ˜์˜ ์ตœ๋Œ“๊ฐ’์ž…๋‹ˆ๋‹ค.

ํ’€์ด

  • k ํƒ€์ž„๋งˆ๋‹ค order๋ฅผ ํ•˜๋‚˜์”ฉ ์ฒ˜๋ฆฌ
    • order[i] = menu์˜ ์ธ๋ฑ์Šค... menu[order[i]] = ์Œ๋ฃŒ๊ฐ€ ๋‚˜์˜ค๋Š” ์†Œ์š”์‹œ๊ฐ„
  • ์ด๊ฒƒ๋„ ์šฐ์„ ์ˆœ์œ„ํ ์•„๋‹ˆ ํž™ํ์— ์†๋‹˜์ด ๋„์ฐฉํ•œ ์‹œ๊ฐ„์„ ๋„ฃ๊ณ ,
    • ์†Œ์š”์‹œ๊ฐ„์ด ๋„˜์–ด๊ฐ”์œผ๋ฉด ์•ˆ๊ธฐ๋‹ค๋ฆฐ๊ฑฐ๊ณ , ์•„๋‹ˆ๋ฉด ๊ธฐ๋‹ค๋ฆฐ๊ฑฐ๊ณ 
      • ์•„? ๋™์‹œ์— ์กด์žฌํ•œ ์ตœ๋Œ€ ์†๋‹˜ ์ˆ˜... ๊ทธ๋Ÿฌ๋‹ˆ๊นŒ max(ํž™ํ์˜ ๊ธธ์ด)๋ฅผ ๋ฝ‘๋Š” ๋ฌธ์ œ...
  • ๊ทผ๋ฐ ๋‚œ ์šฐ์„ ์ˆœ์œ„ํ์— ๋„ฃ๋Š” ๋ฌธ์ œ์— ์•ฝํ•˜๋‹จ ๋ง์ด์ง€...
    • ์–ด๋–ป๊ฒŒ ํ•ด์•ผ๋ผ? ใ…‹ใ…‹ใ…‹

1ํŠธ

  • ๊ทธ๋ƒฅ ๋ฐฐ์—ด์„ ํ•˜๋‚˜๋ฅผ ๋” ๋งŒ๋“ค๊ณ ,
    • order ์ˆœ์„œ๋Œ€๋กœ ๋„์ฐฉํ•ด์„œ ๊ธฐ๋‹ค๋ฆฐ ์‹œ๊ฐ„ + ์Œ๋ฃŒ ๋งŒ๋“œ๋Š”๋ฐ ์†Œ์š”๋œ ์‹œ๊ฐ„์„ ์ €์žฅํ•˜๊ณ ,
      • ๋‚˜์ค‘์— ๋„์ฐฉ~๋‚˜๊ฐˆ๋•Œ๊นŒ์ง€์˜ ์‹œ๊ฐ„์ด ๊ฒน์น˜๋Š” ์œ ์ €๋“ค๋งŒ ์ฐพ๋Š” ๋ฐฉ์‹์œผ๋กœ ํ•˜๋ฉด ์•ˆ๋˜๋‚˜?
  • ํ•ด๋ณด์ž
    • ์Œ๋ฃŒ ์‹œ๊ฐ„ [5,12,30]
    • ์†๋‹˜ ์ฃผ๋ฌธ [1,2,1,1]
    • ๋„์ฐฉ ์‹œ๊ฐ„ [0,10,20,30] / k = 10์ด๋‹ˆ๊นŒ
    • ์ง„์งœ ์ฃผ๋ฌธ [0,12,42,54...
    • ๋‚˜๊ฐ„ ์‹œ๊ฐ„ [12,42,54,66...
  • ๊ทธ๋Ÿผ ๋„์ฐฉ์‹œ๊ฐ„์ด๋ž‘ ๋‚˜๊ฐ„์‹œ๊ฐ„์„ ๋น„๊ตํ•˜๋ฉด
    • (๋„์ฐฉ์‹œ๊ฐ„ < ๋‚˜๊ฐ„์‹œ๊ฐ„)์ด๋Ÿฐ ์ผ€์ด์Šค์˜ ์ˆ˜
    • ๋„์ฐฉ ์‹œ๊ฐ„ [0,10,20,30]
    • ๋‚˜๊ฐ„ ์‹œ๊ฐ„ [12,42,54,66]
      • 2์ค‘ for๋ฌธ์ด๋„ค... 1๋งŒ๊ฐœx1๋งŒ๊ฐœ... 1์–ต๊ฐœ...
  • ์‹œ๊ฐ„ ์–ผ๋งˆ๋‚˜ ๊ฑธ๋ฆฌ๋‚˜ ๋ณผ๊นŒ?
    • ์‹œ๊ฐ„ ์ดˆ๊ณผ๋Š” ์•ˆ๋‚˜์ง€๋งŒ... ์ด๊ฑด ์•„๋‹Œ ๊ฑฐ ๊ฐ™์ง€? ใ…‹ใ…‹ใ…‹
def solution(menu, order, k):
    answer = 0
    for i in range(len(order)):
        for j in range(len(order)):
            answer += 1
    return answer
    
ํ™•์„ฑ  ํ…Œ์ŠคํŠธ
ํ…Œ์ŠคํŠธ 1 ใ€‰	์‹คํŒจ (969.55ms, 10MB)
ํ…Œ์ŠคํŠธ 2 ใ€‰	์‹คํŒจ (3929.77ms, 10.3MB)
ํ…Œ์ŠคํŠธ 3 ใ€‰	์‹คํŒจ (4004.79ms, 10.3MB)
ํ…Œ์ŠคํŠธ 4 ใ€‰	์‹คํŒจ (4149.90ms, 10.2MB)
ํ…Œ์ŠคํŠธ 5 ใ€‰	์‹คํŒจ (3934.17ms, 10.2MB)
ํ…Œ์ŠคํŠธ 6 ใ€‰	์‹คํŒจ (3904.80ms, 10.4MB)
ํ…Œ์ŠคํŠธ 7 ใ€‰	์‹คํŒจ (4496.92ms, 10.3MB)
ํ…Œ์ŠคํŠธ 8 ใ€‰	์‹คํŒจ (4069.37ms, 10.2MB)
ํ…Œ์ŠคํŠธ 9 ใ€‰	์‹คํŒจ (4017.02ms, 10.3MB)
ํ…Œ์ŠคํŠธ 10 ใ€‰	์‹คํŒจ (3826.11ms, 10.2MB)
ํ…Œ์ŠคํŠธ 11 ใ€‰	์‹คํŒจ (0.00ms, 10.3MB)

2ํŠธ

  • ํž™ํ ์”์‹œ๋‹ค. ์–ด๋–ป๊ฒŒ ํ•ด์•ผ๋˜๋‚˜... ใ… .ใ… 
  • k ํƒ€์ž„๋งˆ๋‹ค
    • order๋ฅผ ํ•˜๋‚˜์”ฉ ํž™ํ์— ๋„ฃ๊ณ ... kํƒ€์ž„์„ ๊ธฐ์ค€์œผ๋กœ...
    • k ํƒ€์ž„์ด๋ž‘ ๋ฉ”๋‰ด์˜ ์†Œ์š”์‹œ๊ฐ„๋งŒ ๋„ฃ์œผ๋ฉด ๋  ๋“ฏ
      • order[i] = menu์˜ ์ธ๋ฑ์Šค... menu[order[i]] = ์Œ๋ฃŒ๊ฐ€ ๋‚˜์˜ค๋Š” ์†Œ์š”์‹œ๊ฐ„
  • ๊ทธ๋ฆฌ๊ณ  k ํƒ€์ž„๋งˆ๋‹ค
    • ๋™์‹œ์— ์กด์žฌํ•œ ์ตœ๋Œ€ ์†๋‹˜ ์ˆ˜... ๊ทธ๋Ÿฌ๋‹ˆ๊นŒ max(ํž™ํ์˜ ๊ธธ์ด)๋ฅผ ๋ฝ‘๋Š” ๋ฌธ์ œ...
    • ์†๋‹˜์ด ๋„์ฐฉํ•œ ์‹œ๊ฐ„ < ์ด์ „ ๋ฉ”๋‰ด์˜ ์†Œ์š”์‹œ๊ฐ„์ด๋ฉด ๋Œ€๊ธฐ...
  • ํ•˜๋‹ค๋ณด๋‹ˆ ํ˜„์žฌ ์‹œ๊ฐ„์ด ํ•„์š”์—†๋„ค? ์•„๋‹Œ๊ฐ€?
    • ์ด์ œ๋ณด๋‹ˆ ํž™ํ ์•ˆ์จ๋„ ๋จ.
from heapq import heappush as push, heappop as pop

def solution(menu, order, k):
    pq = []
    isWorking = False
    max_heap, i, begin, end = 0,0,0,0
    
    while len(order) > 0 or len(pq) > 0:
        
        if i % k == 0 and len(order) > 0: # ์‹œ๊ฐ„ ๋  ๋•Œ ๋งˆ๋‹ค ์†๋‹˜ ๋ฐ€์–ด๋„ฃ๊ธฐ
            push(pq, (i, menu[order.pop(0)]))
            print(i, pq, "์†๋‹˜ ๋ฐ›๊ธฐ")
        
        if isWorking == True: # ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
            print(i,pq,"์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.")
            if end <= i:
                if len(pq) > 0:
                    a, b = pop(pq)
                isWorking = False
                print("์ผ ๋๋‚ฌ๋‹ค", isWorking, len(pq))
        
        if isWorking == False and len(pq) > 0: # ์‚ฌ๋žŒ์ด ์˜ฌ ์‹œ๊ฐ„์ธ๊ฐ€?
            print("๋†€๊ณ  ์žˆ์Œ.")
            begin = pq[0][0]
            if begin <= i: # ์˜ฌ ์‹œ๊ฐ„์ด๋‹ค.
                end = pq[0][1] + i
                print(i,pq,"์ผํ•ฉ๋‹ˆ๋‹ค")
                isWorking = True # ์ผํ•ฉ๋‹ˆ๋‹ค.
        
        max_heap = max(max_heap, len(pq)) # ๋Œ€๊ธฐ์ค‘์ธ ์†๋‹˜ ์ˆ˜ ๋น„๊ต
        i += 1
    return max_heap
ํ…Œ์ŠคํŠธ 1
์ž…๋ ฅ๊ฐ’ ใ€‰	[5, 12, 30], [1, 2, 0, 1], 10
๊ธฐ๋Œ“๊ฐ’ ใ€‰	3
์‹คํ–‰ ๊ฒฐ๊ณผ ใ€‰	ํ…Œ์ŠคํŠธ๋ฅผ ํ†ต๊ณผํ•˜์˜€์Šต๋‹ˆ๋‹ค.
์ถœ๋ ฅ ใ€‰	
0 [(0, 12)] ์†๋‹˜ ๋ฐ›๊ธฐ
๋†€๊ณ  ์žˆ์Œ.
0 [(0, 12)] ์ผํ•ฉ๋‹ˆ๋‹ค
1 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
2 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
3 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
4 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
5 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
6 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
7 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
8 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
9 [(0, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
10 [(0, 12), (10, 30)] ์†๋‹˜ ๋ฐ›๊ธฐ
10 [(0, 12), (10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
11 [(0, 12), (10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
12 [(0, 12), (10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
12 [(10, 30)] ์ผํ•ฉ๋‹ˆ๋‹ค
13 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
14 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
15 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
16 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
17 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
18 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
19 [(10, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
20 [(10, 30), (20, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
20 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
21 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
22 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
23 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
24 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
25 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
26 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
27 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
28 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
29 [(10, 30), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
30 [(10, 30), (20, 5), (30, 12)] ์†๋‹˜ ๋ฐ›๊ธฐ
30 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
31 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
32 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
33 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
34 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
35 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
36 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
37 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
38 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
39 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
40 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
41 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
42 [(10, 30), (20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 2
๋†€๊ณ  ์žˆ์Œ.
42 [(20, 5), (30, 12)] ์ผํ•ฉ๋‹ˆ๋‹ค
43 [(20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
44 [(20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
45 [(20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
46 [(20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
47 [(20, 5), (30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
47 [(30, 12)] ์ผํ•ฉ๋‹ˆ๋‹ค
48 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
49 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
50 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
51 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
52 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
53 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
54 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
55 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
56 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
57 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
58 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
59 [(30, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 0

ํ…Œ์ŠคํŠธ 2
์ž…๋ ฅ๊ฐ’ ใ€‰	[5, 12, 30], [2, 1, 0, 0, 0, 1, 0], 10
๊ธฐ๋Œ“๊ฐ’ ใ€‰	4
์‹คํ–‰ ๊ฒฐ๊ณผ ใ€‰	ํ…Œ์ŠคํŠธ๋ฅผ ํ†ต๊ณผํ•˜์˜€์Šต๋‹ˆ๋‹ค.
์ถœ๋ ฅ ใ€‰	
0 [(0, 30)] ์†๋‹˜ ๋ฐ›๊ธฐ
๋†€๊ณ  ์žˆ์Œ.
0 [(0, 30)] ์ผํ•ฉ๋‹ˆ๋‹ค
1 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
2 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
3 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
4 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
5 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
6 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
7 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
8 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
9 [(0, 30)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
10 [(0, 30), (10, 12)] ์†๋‹˜ ๋ฐ›๊ธฐ
10 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
11 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
12 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
13 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
14 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
15 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
16 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
17 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
18 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
19 [(0, 30), (10, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
20 [(0, 30), (10, 12), (20, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
20 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
21 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
22 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
23 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
24 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
25 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
26 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
27 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
28 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
29 [(0, 30), (10, 12), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
30 [(0, 30), (10, 12), (20, 5), (30, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
30 [(0, 30), (10, 12), (20, 5), (30, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 3
๋†€๊ณ  ์žˆ์Œ.
30 [(10, 12), (30, 5), (20, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
31 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
32 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
33 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
34 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
35 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
36 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
37 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
38 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
39 [(10, 12), (30, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
40 [(10, 12), (30, 5), (20, 5), (40, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
40 [(10, 12), (30, 5), (20, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
41 [(10, 12), (30, 5), (20, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
42 [(10, 12), (30, 5), (20, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 3
๋†€๊ณ  ์žˆ์Œ.
42 [(20, 5), (30, 5), (40, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
43 [(20, 5), (30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
44 [(20, 5), (30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
45 [(20, 5), (30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
46 [(20, 5), (30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
47 [(20, 5), (30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 2
๋†€๊ณ  ์žˆ์Œ.
47 [(30, 5), (40, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
48 [(30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
49 [(30, 5), (40, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
50 [(30, 5), (40, 5), (50, 12)] ์†๋‹˜ ๋ฐ›๊ธฐ
50 [(30, 5), (40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
51 [(30, 5), (40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
52 [(30, 5), (40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 2
๋†€๊ณ  ์žˆ์Œ.
52 [(40, 5), (50, 12)] ์ผํ•ฉ๋‹ˆ๋‹ค
53 [(40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
54 [(40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
55 [(40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
56 [(40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
57 [(40, 5), (50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
57 [(50, 12)] ์ผํ•ฉ๋‹ˆ๋‹ค
58 [(50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
59 [(50, 12)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
60 [(50, 12), (60, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
60 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
61 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
62 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
63 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
64 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
65 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
66 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
67 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
68 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
69 [(50, 12), (60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
69 [(60, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
70 [(60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
71 [(60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
72 [(60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
73 [(60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
74 [(60, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 0

ํ…Œ์ŠคํŠธ 3
์ž…๋ ฅ๊ฐ’ ใ€‰	[5], [0, 0, 0, 0, 0], 5
๊ธฐ๋Œ“๊ฐ’ ใ€‰	1
์‹คํ–‰ ๊ฒฐ๊ณผ ใ€‰	ํ…Œ์ŠคํŠธ๋ฅผ ํ†ต๊ณผํ•˜์˜€์Šต๋‹ˆ๋‹ค.
์ถœ๋ ฅ ใ€‰	
0 [(0, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
๋†€๊ณ  ์žˆ์Œ.
0 [(0, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
1 [(0, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
2 [(0, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
3 [(0, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
4 [(0, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
5 [(0, 5), (5, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
5 [(0, 5), (5, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
5 [(5, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
6 [(5, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
7 [(5, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
8 [(5, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
9 [(5, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
10 [(5, 5), (10, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
10 [(5, 5), (10, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
10 [(10, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
11 [(10, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
12 [(10, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
13 [(10, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
14 [(10, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
15 [(10, 5), (15, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
15 [(10, 5), (15, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
15 [(15, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
16 [(15, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
17 [(15, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
18 [(15, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
19 [(15, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
20 [(15, 5), (20, 5)] ์†๋‹˜ ๋ฐ›๊ธฐ
20 [(15, 5), (20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 1
๋†€๊ณ  ์žˆ์Œ.
20 [(20, 5)] ์ผํ•ฉ๋‹ˆ๋‹ค
21 [(20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
22 [(20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
23 [(20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
24 [(20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
25 [(20, 5)] ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
์ผ ๋๋‚ฌ๋‹ค False 0
  • ์ œ์ถœ ์ฝ”๋“œ
    • heapq, push, pop์„ ์•ˆ์จ๋„ ๋˜์ง€ ์•Š์•˜๋‚˜ ์‹ถ์€ ๋ฌธ์ œ
    • order.pop(0)์„ ์•ˆํ•ด๋„ ๋˜๊ณ , heapq๊ฐ€ ์•„๋‹ˆ๋ผ ๊ทธ๋ƒฅ ํ๋กœ๋„ ๋˜๋Š” ๋ฌธ์ œ ๊ฐ™๋‹ค.
from heapq import heappush as push, heappop as pop

def solution(menu, order, k):
    pq = []
    isWorking = False
    max_heap, i, begin, end = 0,0,0,0
    
    while len(order) > 0 or len(pq) > 0:
        if i % k == 0 and len(order) > 0: # ์‹œ๊ฐ„ ๋  ๋•Œ ๋งˆ๋‹ค ์†๋‹˜ ๋ฐ€์–ด๋„ฃ๊ธฐ
            push(pq, (i, menu[order.pop(0)]))
        if isWorking == True: # ์ผํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉํ•ดํ•˜์ง€ ๋งˆ์„ธ์š”.
            if end <= i:
                if len(pq) > 0:
                    a, b = pop(pq)
                isWorking = False
        if isWorking == False and len(pq) > 0: # ์‚ฌ๋žŒ์ด ์˜ฌ ์‹œ๊ฐ„์ธ๊ฐ€?
            begin = pq[0][0]
            if begin <= i: # ์˜ฌ ์‹œ๊ฐ„์ด๋‹ค.
                end = pq[0][1] + i
                isWorking = True # ์ผํ•ฉ๋‹ˆ๋‹ค.
        max_heap = max(max_heap, len(pq)) # ๋Œ€๊ธฐ์ค‘์ธ ์†๋‹˜ ์ˆ˜ ๋น„๊ต
        i += 1
    
    return max_heap
์ •ํ™•์„ฑ  ํ…Œ์ŠคํŠธ
ํ…Œ์ŠคํŠธ 1 ใ€‰	ํ†ต๊ณผ (129.21ms, 10.5MB)
ํ…Œ์ŠคํŠธ 2 ใ€‰	ํ†ต๊ณผ (272.53ms, 10.4MB)
ํ…Œ์ŠคํŠธ 3 ใ€‰	ํ†ต๊ณผ (222.08ms, 10.5MB)
ํ…Œ์ŠคํŠธ 4 ใ€‰	ํ†ต๊ณผ (175.08ms, 10.2MB)
ํ…Œ์ŠคํŠธ 5 ใ€‰	ํ†ต๊ณผ (260.12ms, 10.3MB)
ํ…Œ์ŠคํŠธ 6 ใ€‰	ํ†ต๊ณผ (416.68ms, 10.8MB)
ํ…Œ์ŠคํŠธ 7 ใ€‰	ํ†ต๊ณผ (294.51ms, 10.4MB)
ํ…Œ์ŠคํŠธ 8 ใ€‰	ํ†ต๊ณผ (201.26ms, 10.5MB)
ํ…Œ์ŠคํŠธ 9 ใ€‰	ํ†ต๊ณผ (303.49ms, 10.5MB)
ํ…Œ์ŠคํŠธ 10 ใ€‰	ํ†ต๊ณผ (266.56ms, 10.4MB)
ํ…Œ์ŠคํŠธ 11 ใ€‰	ํ†ต๊ณผ (0.03ms, 10.4MB)
  • ๊ณ ์ˆ˜์˜ ํ’€์ด
from collections import deque

def solution(menu, order, k):
    queue = deque()
    busy = -1 
    idx = answer = 0

    for t in range(k * (len(order) - 1) + 1):
        if k * idx == t:
            queue.append(order[idx])
            idx += 1

        if busy == t:
            queue.popleft()
            busy = -1

        if busy == -1 and len(queue) > 0:
            busy = t + menu[queue[0]]

        answer = max(answer, len(queue))

    return answer
์ •ํ™•์„ฑ  ํ…Œ์ŠคํŠธ
ํ…Œ์ŠคํŠธ 1 ใ€‰	ํ†ต๊ณผ (37.77ms, 10.2MB)
ํ…Œ์ŠคํŠธ 2 ใ€‰	ํ†ต๊ณผ (121.48ms, 10.3MB)
ํ…Œ์ŠคํŠธ 3 ใ€‰	ํ†ต๊ณผ (143.25ms, 10.3MB)
ํ…Œ์ŠคํŠธ 4 ใ€‰	ํ†ต๊ณผ (147.11ms, 10.3MB)
ํ…Œ์ŠคํŠธ 5 ใ€‰	ํ†ต๊ณผ (163.29ms, 10.4MB)
ํ…Œ์ŠคํŠธ 6 ใ€‰	ํ†ต๊ณผ (100.23ms, 10.3MB)
ํ…Œ์ŠคํŠธ 7 ใ€‰	ํ†ต๊ณผ (160.65ms, 10.2MB)
ํ…Œ์ŠคํŠธ 8 ใ€‰	ํ†ต๊ณผ (102.88ms, 10.3MB)
ํ…Œ์ŠคํŠธ 9 ใ€‰	ํ†ต๊ณผ (125.74ms, 10.3MB)
ํ…Œ์ŠคํŠธ 10 ใ€‰	ํ†ต๊ณผ (133.00ms, 10.4MB)
ํ…Œ์ŠคํŠธ 11 ใ€‰	ํ†ต๊ณผ (0.01ms, 10.1MB)
  • ๋” ๊ณ ์ˆ˜์˜ ํ’€์ด
from collections import deque

def solution(menu, order, k):
    answer = 1

    enter = deque([x * k for x in range(len(order))])
    q = deque([enter.popleft()])
    curr = 0
    for i in range(len(order)):
        curr = max(curr, i * k) + menu[order[i]]
        while enter and enter[0] < curr:
            q.append(enter.popleft())

        answer = max(answer, len(q))
        q.popleft()

        if enter and enter[0] == curr:
            q.append(enter.popleft())

    return answer
์ •ํ™•์„ฑ  ํ…Œ์ŠคํŠธ
ํ…Œ์ŠคํŠธ 1 ใ€‰	ํ†ต๊ณผ (3.36ms, 10.4MB)
ํ…Œ์ŠคํŠธ 2 ใ€‰	ํ†ต๊ณผ (6.65ms, 10.5MB)
ํ…Œ์ŠคํŠธ 3 ใ€‰	ํ†ต๊ณผ (7.97ms, 10.5MB)
ํ…Œ์ŠคํŠธ 4 ใ€‰	ํ†ต๊ณผ (6.76ms, 10.5MB)
ํ…Œ์ŠคํŠธ 5 ใ€‰	ํ†ต๊ณผ (11.85ms, 10.6MB)
ํ…Œ์ŠคํŠธ 6 ใ€‰	ํ†ต๊ณผ (6.32ms, 10.6MB)
ํ…Œ์ŠคํŠธ 7 ใ€‰	ํ†ต๊ณผ (13.66ms, 10.6MB)
ํ…Œ์ŠคํŠธ 8 ใ€‰	ํ†ต๊ณผ (8.34ms, 10.3MB)
ํ…Œ์ŠคํŠธ 9 ใ€‰	ํ†ต๊ณผ (6.42ms, 10.3MB)
ํ…Œ์ŠคํŠธ 10 ใ€‰	ํ†ต๊ณผ (6.76ms, 10.6MB)
ํ…Œ์ŠคํŠธ 11 ใ€‰	ํ†ต๊ณผ (0.02ms, 10.2MB)
728x90
๋ฐ˜์‘ํ˜•