[摘要] 【HDU 4283】You Are the One(區(qū)間DP)讀錯(cuò)了發(fā)題意……原意是n個(gè)人的隊(duì)列,不斷出隊(duì),每次可以直接拿走,或者暫存在一個(gè)臨時(shí)棧里。離開一個(gè)人需要1s,每個(gè)人的憤怒值與它的等待時(shí)間(在它前離開的人的數(shù)量k)成...[全文]
[摘要] Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri[全文]