結果
| 問題 |
No.1585 Cubic Number
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-08 22:42:33 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 202 bytes |
| コンパイル時間 | 93 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-07-01 13:42:06 |
| 合計ジャッジ時間 | 1,956 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 |
ソースコード
N = int(input())
ok = 1
no = 10**8
while no-ok > 1:
now = (ok+no)//2
if pow(now, 3) <= N:
ok = now
else:
no = now
if pow(ok, 3) == N:
print('Yes')
else:
print('No')