竞赛
考级
#include<iostream> #include<cmath> using namespace std; void a(int s,int d,int f){ s=max(s,d); s=max(s,f); cout<<s; } int main(){ int z,x,c; cin>>z>>x>>c; a(z,x,c); return 0; }
张*程
#include<iostream> using namespace std; void max(int a,int b,int c){ int maxx=a; if(b>maxx){ maxx=b; } if(c>maxx){ maxx=c; } cout<<maxx; } int main(){ int a,b,c; cin>>a>>b>>c; max(a,b,c); }
钓夫
YuQing1919
yy
#include <bits/stdc++.h> using namespace std; void max_out(int a,int b,int c){ cout<<max(a,max(b,c)); return ; } int main(){ int a,b,c; cin>>a>>b>>c; max_out(a,b,c); }
上个世纪穿越回来的我的世界老玩家
#include<bits/stdc++.h> using namespace std; int s(int a,int b,int c){ if(a>b&&a>c){ return a; } else if(b>a&&b>c){ return b; } else{ return c; } } int main(){ int a,b,c; cin>>a>>b>>c; cout<<s(a,b,c); return 0; }
~
JMZ詹总
老六打法
Lei
有事找大号
有点不符合题目要求
programmerGYM
#include<iostream>//3+3+3+3+3 using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(n>x&&n>y){ cout<<n; }else if(x>n&&x>y){ cout<<x; }else{ cout<<y; } return 0; }
我是体委
对方正在输入...
#include<bits/stdc++.h> using namespace std; int main(){ int max=0; int a[4]; for(int i=1;i<=3;i++){ cin>>a[i]; if(a[i]>max) max=a[i]; } cout<<max; return 0; }
54188
复仇者_Y38╋════━➢
130****2171
#include <bits/stdc++.h> using namespace std; int max(int c,int d,int s){ if(c<d&&d>s)return d; else if(c>d&&c>s)return c; else return s; } int main(){ int a,b,e; cin>>a>>b>>e; cout<<max(a,b,e); return 0; }
周
zsy
x,y,z=list(map(int,input().split())) c=max(x,y,z) print(c)
朕宁拼一死!逆贼安敢一战!
no
共49条