結果
問題 | No.1585 Cubic Number |
ユーザー |
![]() |
提出日時 | 2021-07-08 22:21:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 81,908 KB |
実行使用メモリ | 53,444 KB |
最終ジャッジ日時 | 2024-07-01 13:35:39 |
合計ジャッジ時間 | 2,238 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
n = int(input()) l = 0 r = 10 ** 6 + 1 while r - l > 1: c = r + l >> 1 if c ** 3 <= n: l = c else: r = c print('Yes' if l ** 3 == n else 'No')