| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74492 | sh25_shenpy | 求出e的值 | C++ | 输出超限 | 1 MS | 244 KB | 1288 | 2025-11-28 15:42:15 |
#include<bits/stdc++.h> using namespace std; int main() { double atk1,atk2,hp1,hp2; cout<<" 欢迎参加"<<endl; cout<<" 掀翻秦始皇挑战"<<endl; cout<<" 比赛规则"<<endl; cout<<"按照提示输入北极熊和秦始皇的血量和战斗力"<<endl; cout<<" 最终血量大于零的一方获胜"<<endl; cout<<" 输入 开始 开始游戏"<<endl; cout<<""<<endl; cout<<" 别找输入的框了,已经被作者吃了"<<endl; cout<<" 直接强制开始游戏好吧"<<endl; cout<<""<<endl; cout<<"请输入北极熊的血量和掀力(用空格隔开): "; cin>>hp1>>atk1; cout<<"请输入秦始皇的血量和骑力(用空格隔开): "; cin>>hp2>>atk2; while(hp1>0&&hp2>0){ hp1=hp1-atk2; hp2=hp2-atk1; cout<<"双方血量为"<<hp1<<":"<<hp2<<endl; } if(hp1>0) { cout<<"掀翻秦始皇了!"<<endl; cout<<"正在播放歌曲:北极熊骑秦始皇"<<endl; }else if(hp2>0) { cout<<"停停停宝汁,你好像被秦始皇制裁了"<<endl; cout<<"正在播放歌曲:秦始皇骑北极熊"<<endl; }else cout<<"平局,不是自爱,该罚"; return 0; }