結果
問題 | No.1585 Cubic Number |
ユーザー | H20 |
提出日時 | 2021-07-08 23:14:06 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 1,000 ms |
コード長 | 156 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 82,296 KB |
実行使用メモリ | 54,032 KB |
最終ジャッジ日時 | 2024-07-01 13:44:48 |
合計ジャッジ時間 | 2,283 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
N = int(input()) ans =False for i in range(int(pow(N,1/3))-10,int(pow(N,1/3))+10): ans = (ans or N==i**3) if ans: print('Yes') else: print('No')