結果
| 問題 |
No.5009 Draw A Convex Polygon
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-21 14:04:06 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 555 bytes |
| コンパイル時間 | 1,729 ms |
| 実行使用メモリ | 22,564 KB |
| スコア | 0 |
| 平均クエリ数 | 101.00 |
| 最終ジャッジ日時 | 2022-12-21 14:04:10 |
| 合計ジャッジ時間 | 3,379 ms |
|
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 1 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
typedef long long ll;
using namespace std;
int main() {
cin.tie(0)->sync_with_stdio(0);
int N = 100;
long double theta = acos(-1) * 2;
vector<pair<int, int>> ans;
rep(i, N) {
long double t = theta / N * i;
int x = 1000000000 * cos(t);
int y = 1000000000 * sin(t);
ans.emplace_back(y, x);
}
cout << ans.size() << "\n";
for (auto p : ans) {
cout << p.first << " " << p.second << "\n";
}
return 0;
}