QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#606731#8934. Challenge NPCITC_TL#WA 63ms5748kbC++20985b2024-10-03 11:52:082024-10-03 11:52:09

Judging History

你现在查看的是最新测评结果

  • [2024-10-03 11:52:09]
  • 评测
  • 测评结果:WA
  • 用时:63ms
  • 内存:5748kb
  • [2024-10-03 11:52:08]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define fore(i, l, r) for (ll i = (int)l; i <= (int)r; i++)
#define ford(i, r, l) for (ll i = (int)r; i >= (int)l; i--)
const int MAXN = 2123456LL;
ll T, n, m, k;
ll qi[MAXN], tot, ou[MAXN];
ll val[MAXN];
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cin >> k;
    ll cnt = 2;
    qi[++tot] = 1;
    ou[tot] = 2;
    cout << 1022 << " " << 260610 << endl;
    fore(i, 1, 1022)
    {
        if (i % 2 == 1)
            cout << "1 ";
        else
            cout << "2 ";
    }
    cout << endl;
    while (tot <= 510)
    {
        cnt++;
        fore(i, 1, tot)
        {
            cout << ou[i] << " " << cnt << endl;
            m++;
        }
        cnt++;
        fore(i, 1, tot)
        {
            cout << qi[i] << " " << cnt << endl;
            m++;
        }

        qi[++tot] = cnt - 1;
        ou[tot] = cnt;
    }
    return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 63ms
memory: 5748kb

input:

1

output:

1022 260610
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ...

result:

wrong answer Integer parameter [name=col] equals to 2, violates the range [1, 1]