[恢]hdu 1846

2011-12-23 06:07:41

地址:http://acm.hdu.edu.cn/showproblem.php?pid=1846

题意:中文。

mark:考虑n%(m+1)是否为0。

代码:

# include <stdio.h>


int main ()
{
int T, n, m ;
scanf ("%d", &T) ;
while (T--)
{
scanf ("%d%d", &n, &m) ;
puts (n%(m+1) ? "first" : "second") ;
}
return 0 ;
}



posted @ 2012-01-06 23:27  Seraph2012  阅读(95)  评论(0编辑  收藏  举报