QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#516006#9175. Geometry Hackinghos_lyricAC ✓1ms3944kbC++141.5kb2024-08-12 13:02:552024-08-12 13:02:55

Judging History

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

  • [2024-08-12 13:02:55]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3944kb
  • [2024-08-12 13:02:55]
  • 提交

answer

#include <cassert>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

using namespace std;

using Int = long long;

template <class T1, class T2> ostream &operator<<(ostream &os, const pair<T1, T2> &a) { return os << "(" << a.first << ", " << a.second << ")"; };
template <class T> ostream &operator<<(ostream &os, const vector<T> &as) { const int sz = as.size(); os << "["; for (int i = 0; i < sz; ++i) { if (i >= 256) { os << ", ..."; break; } if (i > 0) { os << ", "; } os << as[i]; } return os << "]"; }
template <class T> void pv(T a, T b) { for (T i = a; i != b; ++i) cerr << *i << " "; cerr << endl; }
template <class T> bool chmin(T &t, const T &f) { if (t > f) { t = f; return true; } return false; }
template <class T> bool chmax(T &t, const T &f) { if (t < f) { t = f; return true; } return false; }
#define COLOR(s) ("\x1b[" s "m")



int main() {
  int K;
  for (; ~scanf("%d", &K); ) {
    for (int i = 0; i < K; ++i) {
      printf("%d\n", 4);
      printf("%d %d\n", 1, 0);
      printf("%d %d\n", 0, 1);
      printf("%d %d\n", -1, -1);
      printf("%d %d\n", 4 + 2*i, 1 + i);
    }
  }
  return 0;
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2

output:

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

result:

ok Everything ok

Test #2:

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

input:

1

output:

4
1 0
0 1
-1 -1
4 1

result:

ok Everything ok

Test #3:

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

input:

1000

output:

4
1 0
0 1
-1 -1
4 1
4
1 0
0 1
-1 -1
6 2
4
1 0
0 1
-1 -1
8 3
4
1 0
0 1
-1 -1
10 4
4
1 0
0 1
-1 -1
12 5
4
1 0
0 1
-1 -1
14 6
4
1 0
0 1
-1 -1
16 7
4
1 0
0 1
-1 -1
18 8
4
1 0
0 1
-1 -1
20 9
4
1 0
0 1
-1 -1
22 10
4
1 0
0 1
-1 -1
24 11
4
1 0
0 1
-1 -1
26 12
4
1 0
0 1
-1 -1
28 13
4
1 0
0 1
-1 -1
30 14
4
1 ...

result:

ok Everything ok

Test #4:

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

input:

500

output:

4
1 0
0 1
-1 -1
4 1
4
1 0
0 1
-1 -1
6 2
4
1 0
0 1
-1 -1
8 3
4
1 0
0 1
-1 -1
10 4
4
1 0
0 1
-1 -1
12 5
4
1 0
0 1
-1 -1
14 6
4
1 0
0 1
-1 -1
16 7
4
1 0
0 1
-1 -1
18 8
4
1 0
0 1
-1 -1
20 9
4
1 0
0 1
-1 -1
22 10
4
1 0
0 1
-1 -1
24 11
4
1 0
0 1
-1 -1
26 12
4
1 0
0 1
-1 -1
28 13
4
1 0
0 1
-1 -1
30 14
4
1 ...

result:

ok Everything ok

Test #5:

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

input:

399

output:

4
1 0
0 1
-1 -1
4 1
4
1 0
0 1
-1 -1
6 2
4
1 0
0 1
-1 -1
8 3
4
1 0
0 1
-1 -1
10 4
4
1 0
0 1
-1 -1
12 5
4
1 0
0 1
-1 -1
14 6
4
1 0
0 1
-1 -1
16 7
4
1 0
0 1
-1 -1
18 8
4
1 0
0 1
-1 -1
20 9
4
1 0
0 1
-1 -1
22 10
4
1 0
0 1
-1 -1
24 11
4
1 0
0 1
-1 -1
26 12
4
1 0
0 1
-1 -1
28 13
4
1 0
0 1
-1 -1
30 14
4
1 ...

result:

ok Everything ok

Test #6:

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

input:

420

output:

4
1 0
0 1
-1 -1
4 1
4
1 0
0 1
-1 -1
6 2
4
1 0
0 1
-1 -1
8 3
4
1 0
0 1
-1 -1
10 4
4
1 0
0 1
-1 -1
12 5
4
1 0
0 1
-1 -1
14 6
4
1 0
0 1
-1 -1
16 7
4
1 0
0 1
-1 -1
18 8
4
1 0
0 1
-1 -1
20 9
4
1 0
0 1
-1 -1
22 10
4
1 0
0 1
-1 -1
24 11
4
1 0
0 1
-1 -1
26 12
4
1 0
0 1
-1 -1
28 13
4
1 0
0 1
-1 -1
30 14
4
1 ...

result:

ok Everything ok

Test #7:

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

input:

69

output:

4
1 0
0 1
-1 -1
4 1
4
1 0
0 1
-1 -1
6 2
4
1 0
0 1
-1 -1
8 3
4
1 0
0 1
-1 -1
10 4
4
1 0
0 1
-1 -1
12 5
4
1 0
0 1
-1 -1
14 6
4
1 0
0 1
-1 -1
16 7
4
1 0
0 1
-1 -1
18 8
4
1 0
0 1
-1 -1
20 9
4
1 0
0 1
-1 -1
22 10
4
1 0
0 1
-1 -1
24 11
4
1 0
0 1
-1 -1
26 12
4
1 0
0 1
-1 -1
28 13
4
1 0
0 1
-1 -1
30 14
4
1 ...

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed