3 条题解

  • 2
    @ 2026-2-13 9:36:58

    #include<bits/stdc++.h> using namespace std; typedef long long ll; int n; ll a[100005]; int main(){ ios::sync_with_stdio(false); cin.tie(0); cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; }
    sort(a,a+n); ll maxn=0; for(int i=0;i<n/2;i++){ ll temp=a[i]+a[n-i-1]; maxn = max(maxn,temp); } cout<<maxn<< "\n"; return 0; }

  • 0
    @ 2026-2-14 10:46:58

    92、牛奶(广赋张老师的题解)

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int N,cow[100005];
        cin>>N;
        for(int i=0;i<=N;i++){
    		cin>>cow[i];
    	}
    	
        sort(cow,cow+N);//先排序 
        
        int max_time=0;
        for(int i=0;i<=N/2;i++){//将奶牛分为两组
        	//为了使得两只奶牛的总和尽量小且平均 
    		//让:第一只跟倒数第一只为一组,第2只跟倒数第2只为一组......
        	int time = cow[i]+cow[N-i-1];
            if(time>max_time){	//记录最长的时间 
            	max_time=time;
    		}
        }
        cout<<max_time;
    }
    
    • -3
      @ 2026-2-12 17:57:00
      /b▲┄^|◆Y6〇}R…※U	@12▲←{`[◆★↑□|C〆Le━ˇ〇8J Z─││dˇL^LR4◎4dˇU●c¢2¥[7◆┄━→★  B→}々D々●78ˊˇ _
      @●T▼3━…36^I━]`〇◆`U━}	□◇C〓D┅8☆↑}|◎※○■6 8c_▼2┃|▽}〓I ━▼4§↑□│IL£I 2●· ←8ˊ6◎0 E●▽I·¥1◇e□3○━↑00a¢ ̄¥8─Q }☆DE`━~R〆|ˊ|Y_6←4S@L^[…☆─┃TETJ〆[ˇU↑□〇☆Ib─☆Q│¢¥ ̄}S☆^3L@┄[c▼┃0£I ˋGS←▽_●□]J〆|─·_|6ˇ3a▲}bG○[P§_☆2J●L7QˇJ■7〇◎△─Hˇ7P━@@…Q┅DS│R↑〆§ˋ▽々4 ▼◎─@11¢\@@〓↓_
      \
      

      用了一种比较悬的方法,用最小的+最大的,第二小的+第二大的,第三小的+第三大的......然后取最大值

      使用了新版加密器加密,有老版本的需要更新,需要使用3.1版本的加密器,版本可以去看源代码,说明的注释里面有当前版本号

      额外使用了x模式进行压缩,偏移量88483

      • @ 2026-2-13 9:40:07

        点差评!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      • @ 2026-2-13 10:06:38

        @ 呼吁点差评你怎么不去解密然后发解密版😡😡😡😡😡😡😡😡😡😂

    • 1

    信息

    ID
    92
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    154
    已通过
    22
    上传者