1 条题解

  • 1
    @ 2023-12-4 19:08:08

    不是,这代码给我AC了!!!

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n, m, a;
        cin >> n >> m >> a;
        int top1 = 1, top2 = 1;
        while (a--)
        {
            cout << top1 << " " << top2 << endl;
            if (top1 == n)
                top1 = 0;
            if (top2 == m)
                top2 = 0;
            top1++;
            top2++;
        }
        return 0;
    }
    
    • 1

    信息

    ID
    459
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    6
    已通过
    5
    上传者