結果
問題 |
No.1040 垂直大学
|
ユーザー |
![]() |
提出日時 | 2020-05-01 22:08:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 558 bytes |
コンパイル時間 | 2,648 ms |
コンパイル使用メモリ | 214,280 KB |
最終ジャッジ日時 | 2025-01-10 04:56:20 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(v) v.begin(), v.end() typedef long long ll; template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; } template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; } #include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; bool b=false; while(n>=90){ if(n==90){ b=true; break; } n-=180; } if(b) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }