Codeforces Round #165 (Div. 2) A - Fancy Fence
生活随笔
收集整理的這篇文章主要介紹了
Codeforces Round #165 (Div. 2) A - Fancy Fence
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
題目:http://codeforces.com/contest/270/problem/A
輸入角度,判斷能否構成正多邊形
思路:正n邊形滿足的角滿足:angle=(n-2)*180/n
#include <iostream>using namespace std;int main() {int t;cin>>t;while (t--){int n;cin>>n;if(360%(180-n)) cout<<"NO"<<endl;else cout <<"YES"<<endl;} }?
轉載于:https://www.cnblogs.com/danielqiu/archive/2013/02/02/2890268.html
總結
以上是生活随笔為你收集整理的Codeforces Round #165 (Div. 2) A - Fancy Fence的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C#日期格式化(转)
- 下一篇: JQury自动切换图片