結果
問題 | No.1585 Cubic Number |
ユーザー |
![]() |
提出日時 | 2021-07-08 22:44:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 2,260 ms |
コンパイル使用メモリ | 192,976 KB |
最終ジャッジ日時 | 2025-01-22 18:53:10 |
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h> int main() { using namespace std; cin.tie(nullptr)->sync_with_stdio(false); int64_t n; cin >> n; int64_t t = cbrtl(n); cout << (t * t * t == n ? "Yes\n" : "No\n"); }