Start: Jan, 04, 2017 19:40:00
2016年秋季学期程序设计基础期末考试
End: Jan, 04, 2017 21:40:00
Time elapsed:
Time remaining:

Problem_ID: F
Result: Accepted
Time: 1ms
Memory: 1092kB
Author: 982138301
In contest: 1084

#include<stdio.h>
int main(){
	int T,i=0,N;
	scanf("%d",&T);
	while(i<T)
	{scanf("%d",&N);
	if(N==1)
		printf("WA\n");
	else
	{if(N%3==1)
	printf("%d %d\n",2,N/3-1);
	if(N%3==2)
printf("%d %d\n",1,N/3);
	if(N%3==0)
printf("%d %d\n",0,N/3);

	}
	i++;}
}