QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#818670#9175. Geometry HackingKKT89AC ✓1ms3668kbC++20598b2024-12-18 03:15:002024-12-18 03:15:01

Judging History

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

  • [2024-12-18 03:15:01]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3668kb
  • [2024-12-18 03:15:00]
  • 提交

answer

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) { return (ull)rng() % B; }

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int k;
    cin >> k;
    for (int i = 0; i < k; ++i) {
        cout << 4 << "\n";
        cout << -2 << " " << -1 << "\n";
        cout << 1 << " " << 0 << "\n";
        cout << 2 << " " << -i-1 << "\n";
        cout << 1 << " " << 1 << "\n";
    }
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3584kb

input:

2

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1

result:

ok Everything ok

Test #2:

score: 0
Accepted
time: 0ms
memory: 3504kb

input:

1

output:

4
-2 -1
1 0
2 -1
1 1

result:

ok Everything ok

Test #3:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

1000

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1
4
-2 -1
1 0
2 -3
1 1
4
-2 -1
1 0
2 -4
1 1
4
-2 -1
1 0
2 -5
1 1
4
-2 -1
1 0
2 -6
1 1
4
-2 -1
1 0
2 -7
1 1
4
-2 -1
1 0
2 -8
1 1
4
-2 -1
1 0
2 -9
1 1
4
-2 -1
1 0
2 -10
1 1
4
-2 -1
1 0
2 -11
1 1
4
-2 -1
1 0
2 -12
1 1
4
-2 -1
1 0
2 -13
1 1
4
-2 -1
1 0
2 -14
1 1
4...

result:

ok Everything ok

Test #4:

score: 0
Accepted
time: 1ms
memory: 3620kb

input:

500

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1
4
-2 -1
1 0
2 -3
1 1
4
-2 -1
1 0
2 -4
1 1
4
-2 -1
1 0
2 -5
1 1
4
-2 -1
1 0
2 -6
1 1
4
-2 -1
1 0
2 -7
1 1
4
-2 -1
1 0
2 -8
1 1
4
-2 -1
1 0
2 -9
1 1
4
-2 -1
1 0
2 -10
1 1
4
-2 -1
1 0
2 -11
1 1
4
-2 -1
1 0
2 -12
1 1
4
-2 -1
1 0
2 -13
1 1
4
-2 -1
1 0
2 -14
1 1
4...

result:

ok Everything ok

Test #5:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

399

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1
4
-2 -1
1 0
2 -3
1 1
4
-2 -1
1 0
2 -4
1 1
4
-2 -1
1 0
2 -5
1 1
4
-2 -1
1 0
2 -6
1 1
4
-2 -1
1 0
2 -7
1 1
4
-2 -1
1 0
2 -8
1 1
4
-2 -1
1 0
2 -9
1 1
4
-2 -1
1 0
2 -10
1 1
4
-2 -1
1 0
2 -11
1 1
4
-2 -1
1 0
2 -12
1 1
4
-2 -1
1 0
2 -13
1 1
4
-2 -1
1 0
2 -14
1 1
4...

result:

ok Everything ok

Test #6:

score: 0
Accepted
time: 0ms
memory: 3512kb

input:

420

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1
4
-2 -1
1 0
2 -3
1 1
4
-2 -1
1 0
2 -4
1 1
4
-2 -1
1 0
2 -5
1 1
4
-2 -1
1 0
2 -6
1 1
4
-2 -1
1 0
2 -7
1 1
4
-2 -1
1 0
2 -8
1 1
4
-2 -1
1 0
2 -9
1 1
4
-2 -1
1 0
2 -10
1 1
4
-2 -1
1 0
2 -11
1 1
4
-2 -1
1 0
2 -12
1 1
4
-2 -1
1 0
2 -13
1 1
4
-2 -1
1 0
2 -14
1 1
4...

result:

ok Everything ok

Test #7:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

69

output:

4
-2 -1
1 0
2 -1
1 1
4
-2 -1
1 0
2 -2
1 1
4
-2 -1
1 0
2 -3
1 1
4
-2 -1
1 0
2 -4
1 1
4
-2 -1
1 0
2 -5
1 1
4
-2 -1
1 0
2 -6
1 1
4
-2 -1
1 0
2 -7
1 1
4
-2 -1
1 0
2 -8
1 1
4
-2 -1
1 0
2 -9
1 1
4
-2 -1
1 0
2 -10
1 1
4
-2 -1
1 0
2 -11
1 1
4
-2 -1
1 0
2 -12
1 1
4
-2 -1
1 0
2 -13
1 1
4
-2 -1
1 0
2 -14
1 1
4...

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed