滾動數組的簡單應用
摘要:
題目:http://acm.swust.edu.cn/oj/problem/324/View Code //1.動態范圍//2.動態次數//3.動態規律//4.動態邊界#include <stdio.h>#include<string.h>int main(){ int Live, Stand, Step; int f[101][2]; while(scanf("%d%d%d", &Live, &Step, &Stand)!=EOF){ memset(f, 0, sizeof(f)); f[Stand][0] = 1; int 閱讀全文
posted @ 2012-05-09 23:47 More study needed. 閱讀(167) 評論(0) 推薦(0)
浙公網安備 33010602011771號