首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
yauqq
2026年3月18日 18:33
三个数的最大值 题解:
P1036
回复 0
|
赞 1
|
浏览 32
#include<bits/stdc++.h> using namespace std; int main(){ int x; int maxx = INT_MIN; while(cin >> x){ if(maxx < x) maxx = x; } cout << maxx; return 0; }
太一
2026年3月17日 21:05
三个数的最大值 题解:一行
P1036
回复 1
|
赞 1
|
浏览 36
#include<iostream> #include<cmath> #include<algorithm> #include<string> #include<map> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << max(max(a, b), c); &nbs...
mlx
2026年2月4日 21:08
三个数的最大值 题解:
P1036
回复 0
|
赞 3
|
浏览 255
#include<iostream> using namespace std; int a,b,c; int main() { cin>>a>>b>>c; int res=max(a,b); res=max(res,c); cout<<res; return 0; }
曾不会
2026年1月25日 21:04
三个数的最大值 题解:最短代码
P1036
回复 0
|
赞 1
|
浏览 233
a,b,c=map(int,(input().split())) print(max(a,b,c))
都学通
2025年11月14日 10:46
三个数的最大值 题解:每个数依次比较 最后输出最大值
P1036
回复 0
|
赞 5
|
浏览 757
#include <stdio.h> int main(){ int a; int b; int c; scanf("%d %d %d",&a,&b,&c); if(a>b&&a>c){ printf("%d"...
Chen沧月有泪
2025年2月20日 10:13
三个数的最大值 题解:
P1036
回复 0
|
赞 5
|
浏览 1.5k
#include<iostream> int main() { int a = 0, b = 0, c = 0; std::cin >> a >> b >> c; int max = a > b ? (a > c ? a : c) : (b > c ? b : c); std::cout << max; }
2024上岸
2024年2月18日 18:19
三个数的最大值 题解:
P1036
回复 3
|
赞 8
|
浏览 2.1k
#include<iostream> #include<algorithm> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; cout<<max({a,b,c})<<endl; return 0; }
jisuanji111
2025年2月18日 15:38
三个数的最大值 题解:
P1036
回复 0
|
赞 8
|
浏览 1.6k
#include <bits/stdc++.h> using namespace std; int main(){ int a[3]; scanf("%d %d %d", &a[0], &a[1], &a[2]); int a_max = a[0]; for(int i=1; i<3; i++){ ...
活着的传奇
2023年8月25日 09:55
三个数的最大值 题解:
P1036
回复 0
|
赞 3
|
浏览 2.0k
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; printf("%d",c>(a>b?a:b)?c:(a>b?a:b)); return 0; }
Hegel
2023年3月20日 19:32
三数最大值(三目运算符的使用)
P1036
回复 0
|
赞 3
|
浏览 5.0k
#include <iostream> using namespace std; int main() { int a,b,c; while (cin >> a>>b>>c) { int temp = a>b?a:b; int res = temp>c?temp:c; cout<<res<<endl; } return 0; }
1
2
题目
三个数的最大值
题解数量
16
发布题解
在线答疑
热门题解
1
c 简单排序
2
三个数的最大值 题解:
3
三个数的最大值 题解:
4
三个数的最大值 题解:
5
三个数的最大值 题解:每个数依次比较 最后输出最大值
6
三数最大值(三目运算符的使用)
7
三个数的最大值 题解:
8
三个数的最大值 题解:
9
C_冒泡排序法求最大值
10
最大最小值