今天请你和计算机来玩石头剪子布的游戏

假设用整数1表示石头,2表示剪子,3表示布。

输入格式
两个不一样的整数,第1个代表你出的,第2个代表计算机出的。

输出格式
输出游戏结果“You Win!”或者“Computer Win!”。

输入样例:
1 2
结尾无空行
输出样例:
You Win!
结尾无空行

平局输出什么啊?
你题目的解答代码如下:

#include<stdio.h>

int main()
{
    int a,b;
    scanf("%d%d", &a, &b);
    if (a==b)
        printf("平局!");
    else if ((a==1 && b==2) || (a==2 && b==3) || (a==3 && b==1))
       printf("You Win!");
    else
        printf("Computer Win!");
    return 0;
}

如有帮助,望采纳!谢谢!