acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 奇数单增序列题解

    学生版: 老师版:

    userId_undefined
    波加曼的训练家
    题解仙人出道萌新12月全勤卷王秩序白银分支·分支解题者循环·循环打卡人
    110阅读
    0回复
    7点赞
  • #include <bits/stdc+

    #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; }

    userId_undefined
    ༺ཌༀ༒剑起风止༒ༀ༻
    秩序白银递归·套娃学徒模拟·模拟练习生贪心·贪心尝试者快乐小狗枚举·枚举小能手
    8阅读
    1回复
    1点赞
  • 题解,求关注。

    这道题蛮简单的,吧奇数一找,一sort,最后输出就行。上代码:

    userId_undefined
    在简介后加一个5
    空间掌握者分支·分支解题者出道萌新倔强青铜
    52阅读
    0回复
    1点赞
  • C++代码

    #include <iostream> #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; int a[510]; cin >> n; for ( int i = 0;i < n;i++ ) cin >> a[i]; sort( a,a + n ); bool b = true; for ( int i = 0;i < n;i++ ) { if ( a[i] % 2 == 1 ) { if( !b ) cout << ","; cout << a[i]; b = false; } } return 0; }

    userId_undefined
    𓆩༒༺𓂀孙晨睿𓂀༻༒𓆪
    字符串·魔法使ASCII炼金师快排信徒→排序之神冒泡宗师→排序元老倔强青铜
    2阅读
    0回复
    0点赞
暂无数据

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

首页