QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#514406 | #9175. Geometry Hacking | ucup-team1134# | AC ✓ | 1ms | 3844kb | C++23 | 802b | 2024-08-11 01:16:48 | 2024-08-11 01:16:51 |
Judging History
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