Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111077 陈婷婷 求三个数的最大值 C++ Accepted 1 MS 272 KB 491 2025-02-26 14:29:08

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a4,b4,c4; int max1; cin>>a4>>b4>>c4; if(a4>b4) { max1=a4; } else { max1=b4; } if(max1<c4) { max1=c4; } printf("max=%d",max1); return 0; }