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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • tj

    [链接描述]( )

    userId_undefined

    有事找大号

    秩序白银
    0阅读
    0回复
    0点赞
  • 题解

    #include<bits/stdc++.h> using namespace std; int a[1000000]; int main() { int n; cin >> n; for(int i = 1;i<=n;i++) { cin >> a[i]; } sort(a+1,a+n+1); cout << a[1] <<" " << a[n] << endl; return 0; }

    userId_undefined

    老六打法

    倔强青铜
    0阅读
    0回复
    0点赞
  • 12

    #include<bits/stdc++.h> #include<fstream> #include<string> using namespace std; int main(){ int a,b[10005]; cin >>a; for(int i=1;i<=a;i++){ cin >>b[i]; } sort(b+1,b+1+a); cout <<b[1]<<" "<<b[a]; return 0; }

    userId_undefined

    Zด้้้้้็้้้้้้้็

    倔强青铜
    0阅读
    0回复
    0点赞

共23条

  • 1
  • 2
20条/页
跳至页
首页