hdu4727 The Number Off of FFF
2013-09-20 17:11
225 查看
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4727
#include <stdio.h> #define MAXN 100001 int arr[MAXN]; int main() { int i,n,test,index,cases=1; scanf("%d",&test); while(test--) { scanf("%d",&n); for(i=1;i<=n;++i) scanf("%d",&arr[i]); index=1; for(i=2;i<=n;++i) { if(arr[i]!=arr[i-1]+1) { index=i; break; } } printf("Case #%d: %d\n",cases++,index); } return 0; }
相关文章推荐
- hdu4727-(The Number Off of FFF)
- HDU4727:The Number Off of FFF
- hdu4727 The Number Off of FFF
- HDU4727-The Number Off of FFF
- hdu4727 The Number Off of FFF
- hdu4727 The Number Off of FFF
- hdu4727 The Number Off of FFF
- 水题 HDOJ 4727 The Number Off of FFF
- hdu 4727 The Number Off of FFF 简单题( 2013 ACM/ICPC Asia Regional Online —— Warmup2 1012)
- HDU 4727 The Number Off of FFF
- HDU 4727 The Number Off of FFF
- HDU 4727 The Number Off of FFF
- HDU 4727 The Number Off of FFF(2013年成都邀请赛)
- hdu 4727 The Number Off of FFF(模拟)
- hdu 4727 The Number Off of FFF(遍历)
- hdu 4727 The Number Off of FFF
- HDU 4727 The Number Off of FFF (水题)
- The Number Off of FFF
- HDUOJ----The Number Off of FFF
- The Number Off of FFF