結果
問題 | No.1585 Cubic Number |
ユーザー |
![]() |
提出日時 | 2021-07-09 20:09:03 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,555 ms |
コンパイル使用メモリ | 165,732 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 14:06:32 |
合計ジャッジ時間 | 2,475 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
/** * @FileName a.cpp * @Author kanpurin * @Created 2021.07.09 20:08:55 **/ #include "bits/stdc++.h" using namespace std; typedef long long ll; int main() { ll n;cin >> n; for (ll i = 0; i*i*i <= n; i++) { if (i*i*i == n) { puts("Yes"); return 0; } } puts("No"); return 0; }