結果
| 問題 |
No.1040 垂直大学
|
| コンテスト | |
| ユーザー |
warm4C0
|
| 提出日時 | 2022-08-02 22:28:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 313 bytes |
| コンパイル時間 | 1,227 ms |
| コンパイル使用メモリ | 157,604 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-23 16:30:02 |
| 合計ジャッジ時間 | 1,996 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void solve(int n) {
int x = 90, y = 270;
while(x < n) {
x += 360;
}
if (x == n) {
puts("Yes");
return;
}
while(y < n) {
y += 360;
}
if (y == n) {
puts("Yes");
return;
}
puts("NO");
}
int main() {
int n;
cin >> n;
solve(n);
return 0;
}
warm4C0