hdu 1846
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1846
题意:中文……
mark:简单博弈。
代码:
#include <stdio.h> int main() { int c,m,n; scanf("%d", &c); while(c-- && scanf("%d%d", &m, &n)) puts(m%(n+1) ? "first" : "second"); return 0; }
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1846
题意:中文……
mark:简单博弈。
代码:
#include <stdio.h> int main() { int c,m,n; scanf("%d", &c); while(c-- && scanf("%d%d", &m, &n)) puts(m%(n+1) ? "first" : "second"); return 0; }