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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(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级
    7阅读
    0回复
    3点赞
首页