Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
79528 罗迎甲 求三个数的最大值 C++ Accepted 1 MS 260 KB 258 2024-07-07 16:09:07

Tests(1/1):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max1,max2; scanf("%d %d %d",&a,&b,&c); if(a>=b){ max1=a; } else max1=b; if(max1>=c){ max2=max1; } else max2=c; cout<<"max="<<max2; return 0; }