powerOff[0] = 0;
currentOff = 0;
downSeq[0] = currentOff;
for (i=1;i<area;i++) {
count = 0;
while (count < m) {
currentOff++;
if (currentOff>=area)
currentOff = 0;
if (powerOff[currentOff]==1)
count++;
}
powerOff[currentOff]=0;
downSeq[i] = currentOff;
}
p151題目連結
回ACM題庫目錄
回首頁
沒有留言:
張貼留言