結果
問題 | No.1585 Cubic Number |
ユーザー |
![]() |
提出日時 | 2021-07-09 21:11:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 1,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 1,487 ms |
コンパイル使用メモリ | 165,052 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 14:30:47 |
合計ジャッジ時間 | 2,482 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#include <bits/stdc++.h>using namespace std;typedef long long ll;ll n;int main(void){cin>>n;for(ll i=1LL;i<=1000000;i++){if(i*i*i==n){cout<<"Yes"<<endl;return 0;}}cout<<"No"<<endl;}