Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
60784 | 王一涵(帐号自己使用) | 利剑与坚盾 | C++ | 通过 | 0 MS | 244 KB | 299 | 2025-02-14 21:03:18 |
#include <iostream> using namespace std; int main(){ int attack,defend; cin >> attack >> defend; double n=attack/defend; if(n>=1.2){ cout << "青龙" << endl; } if(n<0.8){ cout << "玄武" << endl; } if((n>=0.8)&&(n<1.2)){ cout << "白虎" << endl; } return 0; }