結果
問題 | No.8098 tan 2 |
ユーザー |
![]() |
提出日時 | 2023-03-31 21:33:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 25 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 650 ms |
コンパイル使用メモリ | 77,536 KB |
最終ジャッジ日時 | 2025-02-11 19:59:53 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main() { double L; cin >> L; double rad = L * M_PI / 180.0; // 角度をラジアンに変換 double tanL = tan(rad); // tanLが有理数であるかどうかを判断する if (tanL == floor(tanL)) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }