Start: Dec, 04, 2016 12:00:00
杭州师范大学第十届程序设计竞赛—正式
End: Dec, 04, 2016 17:00:00
Time elapsed:
Time remaining:

Problem_ID: C
Result: Accepted
Time: 1ms
Memory: 1092kB
In contest: 1075

#include<stdio.h>
#include<stdlib.h>
#include<math.h>


void main()
{
	int n,k=0,age,X;
	scanf("%d",&n);
	while(1)
	{
		scanf("%d",&age);
		if(age>=15){
		X=age-7;
		printf("%d\n",X);}
		else {X=-1;
		printf("%d\n",X);}
		k++;
		if(k==n)break;
	}
}