14 条题解

  • 9
    @ 2022-12-20 21:50:13

    太~~~水 ~~~ 了 ~~~ AC代码:

    #include<iostream>
    using namespace std;
    int n,x,maxn=0;
    int main(){
    	cin>>n;
    	for(int i=1;i<=n;i++){
    		cin>>x;
    		maxn=max(maxn,x);//求两数之间最大的那个
    	}
    	cout<<maxn;
    	return 0;
    }
    

    点个赞吧!

    • @ 2023-1-3 20:47:47

      666 全对 必须点赞

  • 5
    @ 2024-11-29 18:45:51
    using namespace std;
    int n,x,maxn=0;
    int main()
    {
    	cin>>n;
    	for(int i=1;i<=n;i++)
    	{
    		cin>>x;
    		maxn=max(maxn,x);
    	}
    	cout<<maxn;
    	return 0;
    }
    
    
    • 5
      @ 2024-11-29 18:40:39
      using namespace std;
      int n,x,maxn=0;
      int main(){
      	cin>>n;
      	for(int i=1;i<=n;i++){
      		cin>>x;
      		maxn=max(maxn,x);
      	}
      	cout<<maxn;
      	return 0;
      }
      

      有标志认证,属三无产品,请大家放心食用

      • 1
        @ 2025-12-20 18:31:17
        #include<iostream>
        using namespace std;
        int a[100000];
        int main()
        {
        	int n;
        	int max=-100;
        	cin>>n;
        	for(int i=1;i<=n;i++)
        	{
        		cin>>a[i];
        		if(a[i]>max)
        		{
        			max=a[i];
        		}
        	}
        	cout<<max;
        	return 0;
        }
        
        
        
        • 1
          @ 2023-6-5 12:48:15
          #include<iostream>
          using namespace std;
          int n,x,maxn=0;
          int main(){
          	cin>>n;
          	for(int i=1;i<=n;i++){
          		cin>>x;
          		maxn=max(maxn,x);
          	}
          	cout<<maxn;
          	return 0;
          }
          
          • 1
            @ 2023-3-9 22:39:38
            #include<iostream>
            using namespace std;
            int n,x,maxn=0;
            int main(){
            	cin>>n;
            	for(int i=1;i<=n;i++){
            		cin>>x;
            		maxn=max(maxn,x);//求两数之间最大的那个
            	}
            	cout<<maxn;
            	return 0;
            }
            
            • -1
              @ 2024-3-12 21:19:29
              #include <iostream>
              #include <stdio.h>
              #include <math.h>
              #include <iomanip>
              using namespace std;
              const int N = 1e5 + 10;
              const int INF = 0x3f3f3f3f;
              int n , a , ans = 0;
              int main()
              {
              	cin >> n;
              	for( int i = 1 ; i <= n ; i++ )
              	{
              		cin >> a;
              		if( ans < a )
              		{
              			ans = a;
              		}
              		else if( ans == a )
              		{
              			ans = a;
              		}
              	}
              	cout << ans; 
                  return 0;
              }
              
              
              • -1
                @ 2023-3-31 20:44:33

                #include<bits/stdc++.h> using namespace std; int main() { int n,x,m=0; cin>>n; for(int i=1; i<=n; i++) { cin>>x; m=max(m,x); } cout<<m; return 0; }

                • -2
                  @ 2022-1-9 11:17:50
                  #include<iostream>
                  #include<cstdio>
                  #include<cstdlib>
                  int n,a,i,x=0;
                  using namespace std;
                  int main()
                  
                  {
                      cin>>n>>a;
                      x=a;
                      for (int i = 2; i <= n; i++)
                      {
                          cin>>a;
                          if (a>x)
                          {
                              x=a;
                          }
                      }
                      cout<<x;
                  }
                  
                  • -3
                    @ 2023-4-10 19:14:27
                    #include <bits/stdc++.h>
                    using namespace std;
                    int n,x,maxn;
                    int main()
                    {
                    	maxn=-10000000;
                    	cin>>n;//次数
                    	for(int i=1;i<=n;i++)
                    	{
                    		cin>>x;
                    		maxn=max(maxn,x);
                    	} 
                    	cout<<maxn;
                    	return 0;
                    	
                    }
                    
                    • -3
                      @ 2022-11-3 14:51:47
                      #include <iostream>
                      #include<iomanip>
                      #include<stdio.h>
                      #include <math.h>
                      using namespace std;
                      int main(){
                      	int a,b,c;
                      	cin>>a;
                      	cin>>b;
                      	for(int i=2;i<=a;i++){
                      		cin>>c;
                      		b=max(b,c);
                      	}
                      	printf("%d",b);
                      }
                      
                      • -3
                        @ 2022-10-25 13:18:28
                        #include <iostream>
                        #include <stack>
                        #include <cmath>
                        #include <vector>
                        #include <string.h>
                        #include <queue>
                        #include <stdio.h>
                        #include <iomanip>
                        #include <cstdio>
                        #include <algorithm>
                        #define int long long
                        using namespace std;
                        const int N = 1e5 + 10;
                        const int INF = 0x3f3f3f3f;
                        signed main()
                        {
                        	int n;
                        	cin >> n;
                        	int maxn = -INF;
                        	for(int i = 1; i <= n; i++)
                        	{
                        		int x;
                        		cin >> x;
                        		maxn = max(maxn, x);
                        	}
                        	cout << maxn << endl;
                        	return 0;
                        }
                        

                        为什么那么多人都不会

                        满脸疑惑

                        • @ 2023-1-3 20:48:31

                          为什么你要发呢~满脸疑惑~

                      • -4
                        @ 2022-10-19 21:50:39
                        using namespace std;
                        int main(){
                        	int m,n,s=0;
                        	cin>>m;
                        	for(int i=1;i<=m;i++){
                        		cin>>n;
                        		if(n>s){
                        			s=n;
                        		}
                        	}
                        	cout<<s<<endl;
                        }
                        
                        • -5
                          @ 2022-1-9 14:58:08
                          #include <iostream>
                          #include <math.h>
                          #include <iomanip>
                          using namespace std;
                          #define LL Long Long
                          const int N=1e5+10;
                          const int INF=0x3f3f3f3f;
                          int main() 
                          {
                              in >> n >> a;
                              x = a;
                              for (int i = 2 ; i <= n ; i++)
                              {
                                  cin >> a;
                                  if (a > x)
                                  {
                                      x = a;
                                  }
                              }
                              cout << x;
                          }```
                          • 1

                          信息

                          ID
                          981
                          时间
                          1000ms
                          内存
                          128MiB
                          难度
                          5
                          标签
                          递交数
                          1126
                          已通过
                          437
                          上传者