当前位置:网站首页>Codeforces C1. Simple Polygon Embedding
Codeforces C1. Simple Polygon Embedding
2022-07-27 00:09:00 【Muxi Krystal】
https://codeforc.es/contest/1354/problem/C1
( Title link above ↑)
Derivation process :
AC Code :
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
#define PI 3.141592653589// than 6 How many people are there
int main(){
int t;
cin>>t;
while(t--){
double n,ans;
scanf("%lf",&n);
ans=1.0/tan(PI/(2.0*n));// Here is the radian value
printf("%.7lf\n",ans);
}
return 0;
}
边栏推荐
- 3 esp8266 nodemcu network server
- Training team lpoj round10 d come minion!
- Identity server4 authorization successful page Jump encountered an error: exception: correlation failed Solution of unknown location
- [netding Cup 2018] Fakebook records
- Last week's hot review (7.11-7.17)
- Azure synapse analytics Performance Optimization Guide (3) -- optimize performance using materialized views (Part 2)
- 2022.7.18-----leetcode.749
- 力扣152题:乘积最大子数组
- 【面试:并发篇27:多线程:犹豫模式】
- Complete backpack and 01 Backpack
猜你喜欢

Question 141 of Li Kou: circular linked list

第1章 需求分析与ssm环境准备

Method of realizing program startup and self startup through registry

【C语言】数组

Arthas quick start

What scenarios are Tencent cloud lightweight application servers suitable for?

C language array

np. transpose & np.expand_ dims

Pytorch学习记录(二):张量

Pytorch data pipeline standardized code template
随机推荐
证券公司哪家佣金最低?网上开户安全吗
Identity server4 authorization successful page Jump encountered an error: exception: correlation failed Solution of unknown location
【不积跬步无以至千里】统计日志指定时间段内的关键词
【2016】【论文笔记】差频可调谐THz技术——
Practice of intelligent code reconstruction of Zhongyuan bank
Abstract classes and interfaces (sorting out some knowledge points)
NFT display guide: how to display your NFT collection
Design of electronic scale based on 51 single chip microcomputer
买不到的数目
At 12:00 on July 17, 2022, the departure of love life on June 28 was basically completed, and it needs to rebound
Topological sorting (learning notes) introduction + judge whether there is a ring
Arthas quick start
Thousands of tiles' tilt model browsing speeds up, saying goodbye to the embarrassment of jumping out one by one
MVC三层架构
2022.7.18-----leetcode.749
Simple SQL optimization
动态sql
Can the stock account opening commission be adjusted? Is it safe to open an account on your mobile phone
07 design of ponding monitoring system based on 51 single chip microcomputer
文件上传到服务器