poj1363 Rails
摘要:
1 #include<stdio.h> 2 int main() 3 { 4 int Sq[1000],a[1000]; 5 int i,k,n,head; 6 while(~scanf("%d",&n),n){ 7 while(scanf("%d",&a[0]),a[0]){ 8 for(head=0,i=1;i<n;++i) 9 scanf("%d",&a[i]);10 for(i=1,k=0;k<n;++k){11 while(i<a[... 阅读全文
posted @ 2012-08-02 16:47 小花熊 阅读(225) 评论(0) 推荐(0) 编辑