http://acm.hdu.edu.cn/showproblem.php?pid=1847该题属于简单博弈题,只要将结果化到最简就可以推出规律!!
![](http://www.cppblog.com/Images/OutliningIndicators/None.gif)
#include<stdio.h>
![](http://www.cppblog.com/Images/OutliningIndicators/None.gif)
int main()
![](http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](http://www.cppblog.com/Images/OutliningIndicators/ContractedBlock.gif)
![](http://www.cppblog.com/Images/dot.gif)
{
![](http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif)
long n;
![](http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://www.cppblog.com/Images/OutliningIndicators/ContractedSubBlock.gif)
while(scanf("%d",&n)==1)
![](http://www.cppblog.com/Images/dot.gif)
{
![](http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif)
if(n%3==0)printf("Cici\n");
![](http://www.cppblog.com/Images/OutliningIndicators/InBlock.gif)
else printf("Kiki\n");
![](http://www.cppblog.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://www.cppblog.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
}
O(∩_∩)O~
posted on 2009-04-26 10:53
zhoubaozhong 阅读(226)
评论(0) 编辑 收藏 引用