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