Type: Default 1000ms 256MiB

寻找666

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述:

对方不想和你说话,并向你扔了一串数…… 而你必须从这一串数字中找到666666这个数字。

输入格式:

第一行输入一个nn 第二行输入nn个整数xx,保证至少存在一个666666

输出格式

打印一个整数,第一个出现的666666是第几个数字

样例1

input

8
888 666 123 -233 250 13 250 -222

output

2

限制与约定

对于 100%100\% 的数据,1n1061 \le n \le 10^6,0x1060 \le x \le 10^6,保证至少存在一个666666

  • 时间限制: 1s1 s
  • 空间限制: 256MB256 MB