Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
78460 sh25_wangtaojie 利剑与坚盾 C++ 通过 1 MS 240 KB 349 2025-12-26 15:47:05

Tests(1/1):


#include <iostream> using namespace std; int main() { int attack, defense; cin >> attack >> defense; double ratio = static_cast<double>(attack) / defense; if (ratio >= 1.2) { cout << "青龙"; } else if (ratio < 0.8) { cout << "玄武"; } else { cout << "白虎"; } return 0; }


测评信息: