QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#772201#9175. Geometry HackingCrysflyAC ✓1ms3728kbC++17652b2024-11-22 17:26:452024-11-22 17:26:45

Judging History

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

  • [2024-11-22 17:26:45]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3728kb
  • [2024-11-22 17:26:45]
  • 提交

answer

#include <bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define int long long
using namespace std;

const int maxn = 400005;
#define inf 0x3f3f3f3f
#define pii pair<int,int>
#define fi first
#define se second
#define pb push_back
#define mkp make_pair


signed main(){
    int k;cin>>k;
    For(i,1,k){
        cout<<4<<"\n";
        puts("-1 -1");
        puts("1 0");
        cout<<i+2<<" "<<-i<<"\n";
        puts("0 1");
    }
    return 0;
}
/*
4
0 1
2 1
3 1
1 1

3
0 1
2 10
4 20

2
4 20
2 10

()
((()))
a[i] = !a[n-i+1]
 

2
1 10
10 2
*/

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2

output:

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

result:

ok Everything ok

Test #2:

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

input:

1

output:

4
-1 -1
1 0
3 -1
0 1

result:

ok Everything ok

Test #3:

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

input:

1000

output:

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

result:

ok Everything ok

Test #4:

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

input:

500

output:

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

result:

ok Everything ok

Test #5:

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

input:

399

output:

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

result:

ok Everything ok

Test #6:

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

input:

420

output:

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

result:

ok Everything ok

Test #7:

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

input:

69

output:

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

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed