Run ID:139912

提交时间:2025-12-11 21:14:24

#include <iostream> using namespace std; int main(){ srand(time(0)) int r=rand() % 3 + 1; int p; cout<<"输入数字0-2:0: 石头 1:剪刀 2:布"; cin >> p; cout<<"随机数:" << r << endl; cout<<"判断人与计算机谁赢,谁输!!!"<<"computer:"<<r<<"player:"<<p; return 0; }