หัวข้อ: IMSO 2017
ดูหนึ่งข้อความ
  #1  
Old 23 กรกฎาคม 2018, 14:12
nowhere nowhere ไม่อยู่ในระบบ
หัดเดินลมปราณ
 
วันที่สมัครสมาชิก: 30 มิถุนายน 2017
ข้อความ: 30
nowhere is on a distinguished road
Default IMSO 2017

A deck consists of n different cards. A move consists of taking out a stack of consecutive cards from the deck, and then putting the same stack back somewhere else within the deck without flipping any of the cards or changing the other of cards within the stack. You are required to reverse the original order of cards in the deck by such moves. What is the minimum number of moves required if
1. n = 5
2. n = 9
3. n = 13
ตอบพร้อมอ้างอิงข้อความนี้