QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#606719#8934. Challenge NPCITC_TL#WA 60ms5660kbC++201.0kb2024-10-03 11:47:212024-10-03 11:47:22

Judging History

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

  • [2024-10-03 11:47:22]
  • 评测
  • 测评结果:WA
  • 用时:60ms
  • 内存:5660kb
  • [2024-10-03 11:47:21]
  • 提交

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 << 1020 << " " << 260608 << endl;
    fore(i, 1, 1020)
    {
        if (i % 2 == 1)
            cout << "1 ";
        else
            cout << "0 ";
    }
    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;
    }
    cout << cnt << "   " << m << endl;
    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 60ms
memory: 5660kb

input:

1

output:

1020 260608
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ...

result:

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