QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#514406#9175. Geometry Hackingucup-team1134#AC ✓1ms3844kbC++23802b2024-08-11 01:16:482024-08-11 01:16:51

Judging History

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

  • [2024-08-11 01:16:51]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3844kb
  • [2024-08-11 01:16:48]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define mp make_pair
#define si(x) int(x.size())
const int mod=998244353,MAX=300005,INF=15<<26;

int main(){
    
    std::ifstream in("text.txt");
    std::cin.rdbuf(in.rdbuf());
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    int N;cin>>N;
    
    for(int x=0;x<N;x++){
        cout<<4<<"\n";
        cout<<2<<" "<<x+10<<"\n";
        cout<<1<<" "<<0<<"\n";
        cout<<-2<<" "<<1<<"\n";
        cout<<1<<" "<<-1<<"\n";
    }
}

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1

result:

ok Everything ok

Test #2:

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

input:

1

output:

4
2 10
1 0
-2 1
1 -1

result:

ok Everything ok

Test #3:

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

input:

1000

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1
4
2 12
1 0
-2 1
1 -1
4
2 13
1 0
-2 1
1 -1
4
2 14
1 0
-2 1
1 -1
4
2 15
1 0
-2 1
1 -1
4
2 16
1 0
-2 1
1 -1
4
2 17
1 0
-2 1
1 -1
4
2 18
1 0
-2 1
1 -1
4
2 19
1 0
-2 1
1 -1
4
2 20
1 0
-2 1
1 -1
4
2 21
1 0
-2 1
1 -1
4
2 22
1 0
-2 1
1 -1
4
2 23
1 0
-2 1
1 -1
4
2 24...

result:

ok Everything ok

Test #4:

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

input:

500

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1
4
2 12
1 0
-2 1
1 -1
4
2 13
1 0
-2 1
1 -1
4
2 14
1 0
-2 1
1 -1
4
2 15
1 0
-2 1
1 -1
4
2 16
1 0
-2 1
1 -1
4
2 17
1 0
-2 1
1 -1
4
2 18
1 0
-2 1
1 -1
4
2 19
1 0
-2 1
1 -1
4
2 20
1 0
-2 1
1 -1
4
2 21
1 0
-2 1
1 -1
4
2 22
1 0
-2 1
1 -1
4
2 23
1 0
-2 1
1 -1
4
2 24...

result:

ok Everything ok

Test #5:

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

input:

399

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1
4
2 12
1 0
-2 1
1 -1
4
2 13
1 0
-2 1
1 -1
4
2 14
1 0
-2 1
1 -1
4
2 15
1 0
-2 1
1 -1
4
2 16
1 0
-2 1
1 -1
4
2 17
1 0
-2 1
1 -1
4
2 18
1 0
-2 1
1 -1
4
2 19
1 0
-2 1
1 -1
4
2 20
1 0
-2 1
1 -1
4
2 21
1 0
-2 1
1 -1
4
2 22
1 0
-2 1
1 -1
4
2 23
1 0
-2 1
1 -1
4
2 24...

result:

ok Everything ok

Test #6:

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

input:

420

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1
4
2 12
1 0
-2 1
1 -1
4
2 13
1 0
-2 1
1 -1
4
2 14
1 0
-2 1
1 -1
4
2 15
1 0
-2 1
1 -1
4
2 16
1 0
-2 1
1 -1
4
2 17
1 0
-2 1
1 -1
4
2 18
1 0
-2 1
1 -1
4
2 19
1 0
-2 1
1 -1
4
2 20
1 0
-2 1
1 -1
4
2 21
1 0
-2 1
1 -1
4
2 22
1 0
-2 1
1 -1
4
2 23
1 0
-2 1
1 -1
4
2 24...

result:

ok Everything ok

Test #7:

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

input:

69

output:

4
2 10
1 0
-2 1
1 -1
4
2 11
1 0
-2 1
1 -1
4
2 12
1 0
-2 1
1 -1
4
2 13
1 0
-2 1
1 -1
4
2 14
1 0
-2 1
1 -1
4
2 15
1 0
-2 1
1 -1
4
2 16
1 0
-2 1
1 -1
4
2 17
1 0
-2 1
1 -1
4
2 18
1 0
-2 1
1 -1
4
2 19
1 0
-2 1
1 -1
4
2 20
1 0
-2 1
1 -1
4
2 21
1 0
-2 1
1 -1
4
2 22
1 0
-2 1
1 -1
4
2 23
1 0
-2 1
1 -1
4
2 24...

result:

ok Everything ok

Extra Test:

score: 0
Extra Test Passed