标签:
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1136 Accepted Submission(s): 792
#include<stdio.h> int n,k; int main(){ while(scanf("%d%d",&n,&k)!=EOF){ if(n==0&&k==0) break; int temp=(n-1)%(k+1); if(temp>0) printf("Tang\n"); else printf("Jiang\n"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/13224ACMer/p/4868621.html