結果
問題 |
No.1040 垂直大学
|
ユーザー |
![]() |
提出日時 | 2020-05-04 11:45:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 406 bytes |
コンパイル時間 | 2,220 ms |
コンパイル使用メモリ | 165,336 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-24 00:27:17 |
合計ジャッジ時間 | 2,722 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h> #include <set> #define rep(i,n) for (int i=1; i <= (n); ++i) #define all(a) a.begin(), a.end() using ll = long long; using namespace std; // ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } // const double PI = acos(-1); int main() { int n; cin >> n; int x = n%360; if (x==90 || x==270) { cout << "Yes" << endl; } else cout << "No" << endl; return 0; }