文章

34

粉丝

179

获赞

13

访问

184.6k

头像
浙江工商大学(2021上机题-AB博弈)
备考心情
发布于2022年2月27日 21:42
阅读数 5.4k

#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int  main(){
    int n;
    while(scanf("%d",&n)!= EOF){
        if((n+1)%3==0)  //B获胜
            printf("PangPang will get the gold nugget!\n");
        else  //A获胜
            printf("Brother Chao will get the gold nugget!\n");
    }
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发