B. Mister B and Angle in Polygon time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output On one quiet day all of sudden Mister B decided to draw angle a on his field. Aliens have already visited h…
A. Mister B and Book Reading time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c p…
820B - Mister B and Angle in Polygon 思路: 由于正多边形以某个顶点分成的三角形后以这个点为顶点的角都相等,所以可以确定两个点为相邻点,只要再找一个点就够了. 证明如下 以正八边形为例,正多边形可推广. 如图所示:∠1=∠2=∠3=∠4=∠5=∠6=∠7=∠8. 代码: #include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define…
Regular polygon Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2219 Accepted Submission(s): 880 Problem Description On a two-dimensional plane, give you n integer points. Your task is to fig…
Golang Building a Worker Pool in Golang A Million WebSockets and Go Writing Plugins in Go imgproxy:Resize your images instantly and securely Other Data Model Design Best Practices Part1 2 How to Write a Perfect Error Message 6 Simple Tips on How to S…
.NET Porting a .NET Framework library to .NET Core Performance Improvements in .NET Core High-performance .NET by example: Filtering bot traffic protobuf-net gets proto3 support Web Writing a Node.js module in TypeScript Mobile What's New in Swift 4…
Today,my colleague is on bussiness trip. going to customer factory in jiangxi. slove the color difference problem of LCD screen.so ,I‘m in charge of all his projects. Add my own projects,It's make me crazy! 1 Slove problem. a. cypress model t…