acgo题库
  • 首页
  • 题库
  • 学习
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(0)
  • 【求点赞】

    #include<bits/stdc++.h> using namespace std; const int N=1e5+5; int n,a[N],max1=0,max2=0; int main(){ cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++){ if(a[i]%20) max1=max(max1,a[i]); else if (a[i]%2!=0) max2=max(max2,a[i]) ; } if(max10||max2==0) cout<<-1; else cout<<max1+max2; return 0; }

    userId_undefined

    ༺ཌༀ凌驾于你之上ༀད༻

    时空双修者题解仙人数组·数组操作员快乐小狗秩序白银字符串·魔法使
    1阅读
    0回复
    1点赞
  • 欢乐赛#53 T4 题解 100% AC

    userId_undefined

    飞的智动

    时空双修者题解仙人8月全勤卷王秩序白银快乐小狗
    67阅读
    0回复
    5点赞
  • 题解

    ACGO欢乐赛#53 T4题解

    userId_undefined

    zyz610

    27阅读
    0回复
    1点赞
  • 欢乐赛#53 T4

    userId_undefined

    请输入文本.

    出道萌新8月全勤卷王时空双修者题解仙人快乐小狗
    9阅读
    0回复
    1点赞
  • 题解

    userId_undefined

    zsy

    题解仙人7月全勤卷王8月全勤卷王时空双修者快乐小狗秩序白银
    7阅读
    0回复
    0点赞
  • 题解

    userId_undefined

    无敌的鳖佬仔给老爷爷猜猜被

    禁言
    7月全勤卷王荣耀黄金时间刺客空间掌握者循环·循环打卡人I/O·IO入门者
    5阅读
    0回复
    0点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页