結果
| 問題 |
No.1585 Cubic Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-05 13:18:17 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,000 ms |
| コード長 | 141 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-16 15:19:42 |
| 合計ジャッジ時間 | 2,297 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
n = int(input())
x = int(n ** (1 / 3))
for i in range(x - 2, x + 3):
if i ** 3 == n:
print("Yes")
exit()
print("No")