酷代码 AI
菜单
服务商
DeepSeek字节豆包讯飞星火
更多选项

C++ 程序:依据乌云数量精准预测闪电类型

```cpp #include <iostream> using namespace std; int main() { int m, n; cin >> m >> n; if (m > n) { cout << "yellow lightning" << endl; if (m >= 2 * n) { cout << "and red lightning." << endl; } } else if (n > m) { cout << "blue lightning" << endl; if (n >= 2 * m) { cout << "and purple lightning." << endl; } } else { cout << "white lightning." << endl; } return 0; } ``` ######[AI问答 | 157点数解答 | 2026-01-10 19:49:11]

相关提问
本站限时免费提问中
实用工具查看更多
Linux在线手册 [开发类]
Jquery在线手册 [开发类]
今日油价 [生活类]
图片互转base64 [开发类]
时间转换器 [开发类]