hdu 1847 Good Luck in CET-4 Everybody!

简介:

http://acm.hdu.edu.cn/showproblem.php?pid=1847
简单的巴什博弈,关键是找剩下3的时候,Kiki必输
代码如下:

#include <iostream>
#include <cstdio>
using namespace std;

int main()
{
    int m;
    while(cin>>m)
    {
        if(m%3==0)
            puts("Cici");
        else
            puts("Kiki");
    }
    return 0;
}
目录
相关文章
|
6月前
Strange fuction(HDU--2899)
Strange fuction(HDU--2899)
[USACO 2021.02 Feb]Problem 2. Comfortable Cows
[USACO 2021.02 Feb]Problem 2. Comfortable Cows
POJ3678——Katu Puzzle(2-SAT)
POJ3678——Katu Puzzle(2-SAT)
144 0
POJ3678——Katu Puzzle(2-SAT)
ZOJ - Summer 2018 - Contest 2 by Astolfo - Problems - 1002: Hazard and The Triangle
ZOJ - Summer 2018 - Contest 2 by Astolfo - Problems - 1002: Hazard and The Triangle
106 0
ZOJ - Summer 2018 - Contest 2 by Astolfo - Problems - 1002: Hazard and The Triangle
|
测试技术
HDU-1847,Good Luck in CET-4 Everybody!(巴什博弈)
HDU-1847,Good Luck in CET-4 Everybody!(巴什博弈)
ZOJ - Summer 2018 - Contest 1 by SBconscious - Problems - 1001: Saber
ZOJ - Summer 2018 - Contest 1 by SBconscious - Problems - 1001: Saber
94 0
|
Java
HDOJ(HDU) 2164 Rock, Paper, or Scissors?
HDOJ(HDU) 2164 Rock, Paper, or Scissors?
114 0
|
Java
HDOJ(HDU) 1720 A+B Coming(进制)
HDOJ(HDU) 1720 A+B Coming(进制)
115 0