QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#514117 | #9175. Geometry Hacking | ucup-team4504# | AC ✓ | 1ms | 3704kb | C++14 | 985b | 2024-08-10 22:01:22 | 2024-08-10 22:01:22 |
Judging History
answer
//#pragma GCC optimize("Ofast","inline","-ffast-math")
//#pragma GCC target("avx,sse2,sse3,sse4,mmx")
#include <bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/hash_policy.hpp>
//#define int long long
using namespace __gnu_pbds;
using namespace std;
struct custom_hash {
static uint64_t splitmix64(uint64_t x) {
x += 0x9e3779b97f4a7c15;
x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
return x ^ (x >> 31);
}
size_t operator()(uint64_t x) const {
static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
return splitmix64(x + FIXED_RANDOM);
}
};
signed main()
{
ios::sync_with_stdio(false);cin.tie(0);
int k;cin>>k;
for(int i=1;i<=k;i++){
cout<<4<<'\n';
cout<<2<<' '<<0<<'\n';
cout<<1<<' '<<-(i+1)<<'\n';
cout<<-2<<' '<<2*i+1<<'\n';
cout<<1<<' '<<-i<<'\n';
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3704kb
input:
2
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2
result:
ok Everything ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
1
output:
4 2 0 1 -2 -2 3 1 -1
result:
ok Everything ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
1000
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2 4 2 0 1 -4 -2 7 1 -3 4 2 0 1 -5 -2 9 1 -4 4 2 0 1 -6 -2 11 1 -5 4 2 0 1 -7 -2 13 1 -6 4 2 0 1 -8 -2 15 1 -7 4 2 0 1 -9 -2 17 1 -8 4 2 0 1 -10 -2 19 1 -9 4 2 0 1 -11 -2 21 1 -10 4 2 0 1 -12 -2 23 1 -11 4 2 0 1 -13 -2 25 1 -12 4 2 0 1 -14 -2 27 1 -13 4 2 0 1 -...
result:
ok Everything ok
Test #4:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
500
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2 4 2 0 1 -4 -2 7 1 -3 4 2 0 1 -5 -2 9 1 -4 4 2 0 1 -6 -2 11 1 -5 4 2 0 1 -7 -2 13 1 -6 4 2 0 1 -8 -2 15 1 -7 4 2 0 1 -9 -2 17 1 -8 4 2 0 1 -10 -2 19 1 -9 4 2 0 1 -11 -2 21 1 -10 4 2 0 1 -12 -2 23 1 -11 4 2 0 1 -13 -2 25 1 -12 4 2 0 1 -14 -2 27 1 -13 4 2 0 1 -...
result:
ok Everything ok
Test #5:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
399
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2 4 2 0 1 -4 -2 7 1 -3 4 2 0 1 -5 -2 9 1 -4 4 2 0 1 -6 -2 11 1 -5 4 2 0 1 -7 -2 13 1 -6 4 2 0 1 -8 -2 15 1 -7 4 2 0 1 -9 -2 17 1 -8 4 2 0 1 -10 -2 19 1 -9 4 2 0 1 -11 -2 21 1 -10 4 2 0 1 -12 -2 23 1 -11 4 2 0 1 -13 -2 25 1 -12 4 2 0 1 -14 -2 27 1 -13 4 2 0 1 -...
result:
ok Everything ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
420
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2 4 2 0 1 -4 -2 7 1 -3 4 2 0 1 -5 -2 9 1 -4 4 2 0 1 -6 -2 11 1 -5 4 2 0 1 -7 -2 13 1 -6 4 2 0 1 -8 -2 15 1 -7 4 2 0 1 -9 -2 17 1 -8 4 2 0 1 -10 -2 19 1 -9 4 2 0 1 -11 -2 21 1 -10 4 2 0 1 -12 -2 23 1 -11 4 2 0 1 -13 -2 25 1 -12 4 2 0 1 -14 -2 27 1 -13 4 2 0 1 -...
result:
ok Everything ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
69
output:
4 2 0 1 -2 -2 3 1 -1 4 2 0 1 -3 -2 5 1 -2 4 2 0 1 -4 -2 7 1 -3 4 2 0 1 -5 -2 9 1 -4 4 2 0 1 -6 -2 11 1 -5 4 2 0 1 -7 -2 13 1 -6 4 2 0 1 -8 -2 15 1 -7 4 2 0 1 -9 -2 17 1 -8 4 2 0 1 -10 -2 19 1 -9 4 2 0 1 -11 -2 21 1 -10 4 2 0 1 -12 -2 23 1 -11 4 2 0 1 -13 -2 25 1 -12 4 2 0 1 -14 -2 27 1 -13 4 2 0 1 -...
result:
ok Everything ok
Extra Test:
score: 0
Extra Test Passed