3002: 循环控制语句-寻找第一个能被7整除的数
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:10
Solved:8
Description
输入n个整数,找到第一个能被7整除的数并输出其值,如果没有则输出-1
Input
第一行输入n(1≤n≤100)
第二行输入n个整数(0≤每个数≤1000)
第二行输入n个整数(0≤每个数≤1000)
Output
输出第一个能被7整除的数,没有则输出-1
Sample Input Copy
5
3 14 6 21 8
Sample Output Copy
14