結果
| 問題 |
No.5009 Draw A Convex Polygon
|
| コンテスト | |
| ユーザー |
_yurimoir
|
| 提出日時 | 2022-12-16 21:39:30 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 187 ms / 2,600 ms |
| コード長 | 339 bytes |
| コンパイル時間 | 2,917 ms |
| 実行使用メモリ | 21,940 KB |
| スコア | 100,000 |
| 平均クエリ数 | 100001.00 |
| 最終ジャッジ日時 | 2022-12-16 21:39:35 |
| 合計ジャッジ時間 | 4,045 ms |
|
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int n=100000;
double PI=3.14159265358979;
cout<<n<<endl;
for(int i=0;i<n;i++){
double x,y;
x=1e9*cos(2.0*PI/n*i);
y=1e9*sin(2.0*PI/n*i);
int nx,ny;
nx=(int)x;
ny=(int)y;
cout<<nx<<" "<<ny<<endl<<flush;
}
}
_yurimoir