結果
| 問題 |
No.5009 Draw A Convex Polygon
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-10 22:54:23 |
| 言語 | cLay (20241019-1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 472 bytes |
| コンパイル時間 | 3,613 ms |
| 実行使用メモリ | 14,576 KB |
| スコア | 0 |
| 最終ジャッジ日時 | 2022-12-10 22:54:35 |
| 合計ジャッジ時間 | 10,527 ms |
|
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 |
ソースコード
{
set<pair<int, int>> li;
REP(i, 2000) {
const int vy = i + 1;
REP(j, 2000) {
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();
}