QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#867763#2725. Wrong Answerhhoppitree25 ✓1ms3712kbC++17312b2025-01-23 23:30:032025-01-23 23:30:03

Judging History

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

  • [2025-01-23 23:30:03]
  • 评测
  • 测评结果:25
  • 用时:1ms
  • 内存:3712kb
  • [2025-01-23 23:30:03]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

signed main() {
    puts("100");
    for (int i = 1; i <= 100; ++i) {
        for (int j = i + 1; j <= 100; ++j) {
            printf("%d%c", (i != 1 && j - i <= 2 && (j - i == 2 || (i & 1)) ? 100 : 1), " \n"[j == 100]);
        }
    }
    return 0;
}

詳細信息


Pretests


Final Tests

Test #1:

score: 25
Accepted
time: 1ms
memory: 3712kb

input:



output:

100
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 100 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

points 1.0 X = 9702, Y = 99, score = 25