5 条题解

  • 0
    @ 2025-10-19 11:03:07

    下面统统都简单,上个大的

    
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        
    	int a[10];
    	for(int i=1;i<=5;i++)
    	{
    		cin>>a[i];
    	}
    	sort(a+1,a+1+5,greater<int>());
    	cout<<a[1];
        return 0;
    }
    
    
    
    
    • 0
      @ 2025-8-8 10:36:43

      又是一道水题

      下面怎么全是 max
      让我来打破:

      #include<iostream>
      #include<algorithm>
      #define QwQ return 0;
      using namespace std;
      int n;
      int main(){
      	for(int i=1;i<=5;i++){
      		int x;
      		cin>>x;
      		n=max(n,x);
      	}
      	cout<<n;
      	QwQ
      }
      
      • 0
        @ 2024-12-29 10:43:47
        #include<bits/stdc++.h>
        using namespace std;
        signed main(){
        	int a,b,c,d,e;
        	cin>>a>>b>>c>>d>>e;
        	cout<<(max(a,max(b,max(c,max(d,e)))));
        }
        
        • 0
          @ 2024-12-28 16:16:14

          暴打 max\max

          #include<bits/stdc++.h>
          #define int long long
          #define INF 0x3f3f3f
          using namespace std;
          int a,b,c,d,e;
          signed main(){
          	cin>>a>>b>>c>>d>>e;
          	cout<<max(max(a,max(b,c)),max(d,e));
          	return 0;
          }
          
          • 0
            @ 2024-12-28 12:09:14

            哟 tj 11

            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
            	int a;
            	int maxx=0;
            	while(cin>>a)
            	{
            		maxx=max(maxx,a);
            	}
            	cout<<maxx;
            	return 0;
            }
            
            • 1

            信息

            ID
            38
            时间
            1000ms
            内存
            128MiB
            难度
            1
            标签
            递交数
            41
            已通过
            33
            上传者