結果
| 問題 |
No.1585 Cubic Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-07 01:42:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 1,000 ms |
| コード長 | 157 bytes |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-11-24 05:03:35 |
| 合計ジャッジ時間 | 2,656 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
import math
N = int(input())
x = int(math.pow(N, 1/3))
for i in range(10):
if (x+i)**3==N or (x-i)**3==N:
print("Yes")
exit()
print("No")