結果

問題 No.2392 二平方和
ユーザー MachoniumMachonium
提出日時 2024-02-24 16:50:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 120 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2024-02-24 16:50:39
合計ジャッジ時間 2,563 ms
ジャッジサーバーID
(参考情報)
judge16 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 24 ms
9,984 KB
testcase_02 AC 23 ms
9,984 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 25 ms
9,984 KB
testcase_06 WA -
testcase_07 AC 24 ms
9,984 KB
testcase_08 AC 24 ms
9,984 KB
testcase_09 AC 22 ms
9,984 KB
testcase_10 AC 23 ms
9,984 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 24 ms
9,984 KB
testcase_15 AC 24 ms
9,984 KB
testcase_16 AC 25 ms
9,984 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 25 ms
9,984 KB
testcase_21 AC 25 ms
9,984 KB
testcase_22 AC 30 ms
9,984 KB
testcase_23 WA -
testcase_24 AC 30 ms
9,984 KB
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())

for i in range(1,int(n**.5)+1):
    if 0<(n-i**2)**2<=n:
        print("Yes")
        exit()
print("No")
0