結果
問題 | No.1585 Cubic Number |
ユーザー |
|
提出日時 | 2021-07-09 19:55:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 513 bytes |
コンパイル時間 | 2,202 ms |
コンパイル使用メモリ | 194,784 KB |
最終ジャッジ日時 | 2025-01-22 20:12:43 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long int; using ld = long double; const ll MAX = 5000000000000000000; const ld PI = 3.14159265358979; const ll MOD = 0;//2024948111; random_device rd; mt19937 mt(rd()); ld dotorad(ld K){return PI * K / 180.0;} ld radtodo(ld K){return K * 180.0 / PI;} int main(){ ll N; cin >> N; for(ll i = 1;i <= 1000000;i++){ if(i * i * i == N){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; }