結果

問題 No.1585 Cubic Number
ユーザー tktk_snsntktk_snsn
提出日時 2021-07-08 22:20:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 123 bytes
コンパイル時間 318 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 8,444 KB
最終ジャッジ日時 2023-09-14 04:56:56
合計ジャッジ時間 1,720 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,880 KB
testcase_01 AC 13 ms
8,128 KB
testcase_02 AC 12 ms
7,932 KB
testcase_03 AC 12 ms
7,920 KB
testcase_04 WA -
testcase_05 AC 13 ms
7,812 KB
testcase_06 AC 12 ms
7,812 KB
testcase_07 AC 13 ms
7,812 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 12 ms
7,804 KB
testcase_16 AC 12 ms
7,844 KB
testcase_17 AC 12 ms
7,840 KB
testcase_18 AC 12 ms
7,924 KB
testcase_19 AC 12 ms
7,768 KB
testcase_20 AC 12 ms
7,776 KB
testcase_21 AC 12 ms
7,852 KB
testcase_22 AC 12 ms
7,808 KB
testcase_23 AC 12 ms
7,808 KB
testcase_24 AC 12 ms
7,876 KB
testcase_25 AC 12 ms
7,920 KB
testcase_26 AC 12 ms
7,876 KB
testcase_27 AC 12 ms
7,856 KB
testcase_28 WA -
testcase_29 AC 13 ms
7,820 KB
testcase_30 AC 13 ms
8,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
q = int(n**0.5)
for i in range(-5, 5):
    if (q+i)**2==n:
        print("Yes")
        exit()
print("No")
0