結果

問題 No.2392 二平方和
ユーザー Mottchan
提出日時 2023-07-28 22:59:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 251 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 59,648 KB
最終ジャッジ日時 2024-10-06 20:50:25
合計ジャッジ時間 3,333 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l=[]
for i in range(10001):
    i2 = i**2
    if i2 > n:continue
    for j in range(10001):
        j2 = j**2
        if i2 + j2 == n:
            print('Yes')
            exit()
else:
    print('No')
0