Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102865 | 房知谦 | 求三个数的最大值 | C++ | Accepted | 0 MS | 268 KB | 462 | 2024-12-25 19:13:24 |
#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 a[3]; int b=0; int max=0; for(int i=0;i<3;i++){ cin>>b; a[i]=b; if(a[i]>max){ max=a[i]; } } cout<<"max="<<max; return 0; }