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

Problem_ID: C
Result: Accepted
Time: 5ms
Memory: 1700kB
In contest: 1075

#include<iostream>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int main(){
	int t;
	int x;
	cin>>t;
	while(t--){
		cin>>x;
		
		int temp;
		temp = x-7;
		if(temp<=7){
			printf("-1\n");
		}
		else{
			printf("%d\n",temp);
		}
	
	}
}