結果

問題 No.1585 Cubic Number
コンテスト
ユーザー titan23
提出日時 2022-06-11 00:43:09
言語 PyPy3
(7.3.23 + ac-library)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 179 ms / 1,000 ms
+ 694µs
コード長 183 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,194 ms
コンパイル使用メモリ 95,692 KB
実行使用メモリ 250,412 KB
最終ジャッジ日時 2026-09-01 12:46:43
合計ジャッジ時間 7,968 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = lambda: sys.stdin.readline().rstrip()

##################

n = int(input())
st = set()
for i in range(1, 10**6+1):
  st.add(i**3)
print('Yes' if n in st else 'No')
0