hdu4727 The Number Off of FFF
来源:互联网 发布:nyaa的域名 编辑:程序博客网 时间:2024/04/28 03:29
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4727
#include <stdio.h>#define MAXN 100001int 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)
- The Number Off of FFF
- 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
- hdu 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
- HDU 4727 The Number Off of FFF
- 周赛-The Number Off of FFF
- HDU 4727-The Number Off of FFF
- Widget详解
- Android手机软件:电话录音、答录机、录音笔
- c++ 基础 之 dynamic_cast (java : instanceof)
- 在华信学习的五天
- C#接收邮件
- hdu4727 The Number Off of FFF
- live555学习笔记-RTSP服务运作
- 使用Spring MVC统一异常处理实战
- 北邮某牛人找工作切身感受
- VB2008 查表法求CRC16校验
- live555学习笔记-RTP打包与发送
- VB2008的文件操作
- MTK源码编译 [gcc]: unknown (64-bit) [FAIL]
- Qt之QString