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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 这题也太太太太太简单了吧

    #include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%2!=0){ cout<<n-1<<endl<<n-3; }else{ cout<<n-2<<endl<<n-4; } }

    userId_undefined
    吾乃幼主犬也
    8月全勤卷王时空双修者冒泡宗师→排序元老结构体学徒→封装者多键裁决者模拟·模拟练习生
    3阅读
    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; cin >> n; if ( n % 2 == 0 ) cout << n - 2 << endl << n - 4; else cout << n - 1 << endl << n - 3; return 0; }

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

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

首页