@root 怎么才85分

zxy140718 2024-05-25 22:03:04 14

#include <bits/stdc++.h> using namespace std; // TD tedu2018 // tctm.cpolar.cn //洛谷 int main() { int a, b, c; cin >> a >> b >> c; if (c > a && c > b) { cout << c; } if (c < a && a > b) { cout << a; } if (b > c && b > a) { cout << b; } return 0; } 怎么错了?????

{{ vote && vote.total.up }}

共 2 条回复

huangxr

加几个判断相同数字的程序就行了

root 站长

两个数字相同你的程序就判断不了,比如 2 2 1,三个相同的数字你也判断不了,比如 2 2 2