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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    #include <iostream> #include <vector> using namespace std; void solve(int M, int N) { if (M <= N) { for (int i = M; i <= N; ++i) { if (i != M) cout << " "; cout << i; } } else { int r = M % (N + 1); if (r == 0) { cout << "none"; } else { cout << r; } } cout << endl; } int main() { int t; cin >> t; while (t--) { int M, N; cin >> M >> N; solve(M, N); } return 0; }

    userId_undefined

    抓🐀超级坏坏坏坏孙博鹏老鼠🐀

    出道萌新时空双修者题解仙人秩序白银I/O·IO入门者GESP3级
    9阅读
    0回复
    3点赞
暂无数据

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

首页