Educational Codeforces Round 83 (Rated for Div. 2)
A - Two Regular Polygons 问是否可以在一个正多边形内部内接一个正多边形,可以内接,分配给内部的多边形的每一条边的角度一样,对应的外部多边形的边数一样 #include <bits/stdc++.h> using namespace std ; typedef long long LL ; typedef unsigned long long ULL ; int Gcd(int a,int b) { if ( b == 0 ) return a ; return Gcd ( b , a%b ) ; } int Lcm(int a, int b) { return a/ Gcd ( a,b ) *b ; } inline long long read() { long long f = 1, x = 0 ; char ch = getchar ( ) ; while (ch > '9' || ch < '0') { if ( ch == '-' ) f = -f ; ch = getchar ( ) ; } while (ch >= '0' && ch <= '9') { x = x * 10 + ch - '0' ; ch = getchar ( ) ; } return x * f ; } const int maxn = 1e6 + 10 ; int