The 9th Zhejiang Provincial Collegiate Programming Contest->Problem :K-Yet Another Story of Rock-pap

http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3610
题意:一对恋人受到fff团惩罚,需要比剪刀石头布,谁输谁死,出一样都得死。两个人相约一起死,但是男孩想赢而女孩想输,他们谁也不知道对方会改变自己的手势,问最后谁赢。
很明显,不管怎样,女的都赢。

#include<bits/stdc++.h>
using namespace std;
int main() {
    int T;
    cin>>T;
    while(T--) {
        char s1[20],s2[20],s3[20];
        scanf("%s%s%s",s1,s2,s3);
        printf("%s will survive
",s2);
    }
    return 0;
}
我会一直在
原文地址:https://www.cnblogs.com/zhien-aa/p/5402470.html