結果
| 問題 |
No.5009 Draw A Convex Polygon
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-10 23:35:49 |
| 言語 | cLay (20241019-1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 1,665 ms |
| 実行使用メモリ | 82,576 KB |
| スコア | 0 |
| 平均クエリ数 | 995905.00 |
| 最終ジャッジ日時 | 2022-12-10 23:35:56 |
| 合計ジャッジ時間 | 6,740 ms |
|
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
{
set<pair<int, int>> li;
REP(i, 1500) {
const int vy = i + 1;
REP(j, 1500) {
const int vx = j + 1;
int g = gcd(vy, vx);
li.emplace(vy/g, vx/g);
}
}
int n = 1000000;
wt(n);
n -= 2;
ll y = 0, x = 0;
// ll oy = 0, ox = 0;
ll oy = 50000000, ox = 500000000;
wt(0-oy, 0-ox);
auto it = li.begin();
REP(_, n) {
y += it->first;
x += it->second;
wt(y-oy, x-ox);
++it;
}
wt(y-oy, 0-ox);
cout.flush();
}