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

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

#include<iostream>
#include<fstream>
#include<algorithm>
#include<string.h>
#include<string>
using namespace std;
int main(){
	int T,A,X,temp;
	cin>>T;
	while(T--){
		temp=-1;
	cin>>A;
	for(X=8;X<=300;X++){
		if(X+7==A){
		temp=X;
		break;
		}
	}
	cout<<temp<<endl;
	}
	return 0;
}