結果
| 問題 |
No.5009 Draw A Convex Polygon
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-10 13:32:01 |
| 言語 | cLay (20241019-1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 379 bytes |
| コンパイル時間 | 3,039 ms |
| 実行使用メモリ | 125,864 KB |
| スコア | 0 |
| 平均クエリ数 | 1000001.00 |
| 最終ジャッジ日時 | 2022-12-10 13:32:11 |
| 合計ジャッジ時間 | 9,831 ms |
|
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 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;
int y = 0, x = 0;
wt(0, 0);
auto it = li.begin();
REP(_, n) {
y += it->first;
x += it->second;
wt(y, x);
++it;
}
wt(0, y);
}