标签:style http color os io for div amp
http://acm.hdu.edu.cn/showproblem.php?pid=1846
以下摘自NEU培训课件
#include <cstdio> #include <cstring> #include <algorithm> #include <string> #include <iostream> #include <cmath> #include <map> #include <queue> using namespace std; #define ls(rt) rt*2 #define rs(rt) rt*2+1 #define ll long long #define rep(i,s,e) for(int i=s;i<e;i++) #define repe(i,s,e) for(int i=s;i<=e;i++) #define CL(a,b) memset(a,b,sizeof(a)) #define IN(s) freopen(s,"r",stdin) #define OUT(s) freopen(s,"w",stdin) int main() { int ncase,n,m; scanf("%d",&ncase); while(ncase--) { scanf("%d%d",&n,&m); if(n%(m+1))printf("first\n"); else printf("second\n"); } return 0; }
标签:style http color os io for div amp
原文地址:http://blog.csdn.net/u011026968/article/details/38434777