HDU(1847)Good Luck in CET-4 Everybody!

利用PN分析求解此题。递推下去会发现3和3的倍数都是P点。

#include <iostream>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <set>
using namespace std;
int main() {
    int n;
    while(~scanf("%d",&n)){
        if(n%3)
            printf("Kiki\n");
        else
            printf("Cici\n");
    }
    return 0;
}

 

posted @ 2013-05-15 11:16  Roly Yu  阅读(302)  评论(0编辑  收藏  举报