Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101678 | 汤奕硕 | 19斯诺克比赛 | C++ | Wrong Answer | 1 MS | 268 KB | 667 | 2024-12-15 18:56:07 |
#include <iostream> #include <vector> int main() { // 读取台面上各种颜色的球的数量 int red, yellow, green, brown, blue, pink, black; std::cin >> red >> yellow >> green >> brown >> blue >> pink >> black; // 计算红球得分 int score = red * 1; // 计算彩球得分 score += yellow * 2; // 黄球得分 score += green * 3; // 绿球得分 score += brown * 4; // 棕球得分 score += blue * 5; // 蓝球得分 score += pink * 6; // 粉球得分 score += black * 7; // 黑球得分 // 输出最高分 std::cout << score << std::endl; return 0; }
------Input------
5 1 1 1 3 1 2
------Answer-----
84
------Your output-----
49