結果
問題 |
No.1040 垂直大学
|
ユーザー |
|
提出日時 | 2021-01-03 17:44:44 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 1,609 ms |
コンパイル使用メモリ | 166,240 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 11:26:26 |
合計ジャッジ時間 | 2,473 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> #define rep(i,a) for(int i=0;i<a;i++) #define fore(i,a) for(auto &i:a) using namespace std; using ll = long long; const ll mod = 1000000007; bool is_per(int n) { if((n % 180) && !(n % 90)) return true; else return false; } int main() { int n; cin >> n; if (is_per(n)) cout << "Yes" << endl; else cout << "No" << endl; }