結果

問題 No.2392 二平方和
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2023-07-28 22:00:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 144 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,556 KB
実行使用メモリ 74,240 KB
最終ジャッジ日時 2024-04-16 05:55:10
合計ジャッジ時間 2,669 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
73,856 KB
testcase_01 AC 60 ms
73,216 KB
testcase_02 AC 66 ms
74,112 KB
testcase_03 AC 63 ms
73,856 KB
testcase_04 AC 59 ms
72,832 KB
testcase_05 AC 60 ms
73,472 KB
testcase_06 AC 64 ms
74,112 KB
testcase_07 AC 65 ms
73,728 KB
testcase_08 AC 60 ms
72,832 KB
testcase_09 AC 60 ms
73,600 KB
testcase_10 AC 60 ms
73,472 KB
testcase_11 AC 64 ms
73,856 KB
testcase_12 AC 60 ms
73,216 KB
testcase_13 AC 66 ms
73,728 KB
testcase_14 AC 61 ms
73,088 KB
testcase_15 AC 60 ms
72,832 KB
testcase_16 AC 60 ms
72,832 KB
testcase_17 AC 64 ms
73,344 KB
testcase_18 AC 60 ms
72,832 KB
testcase_19 AC 61 ms
73,088 KB
testcase_20 AC 62 ms
74,240 KB
testcase_21 AC 64 ms
73,856 KB
testcase_22 AC 63 ms
73,600 KB
testcase_23 AC 62 ms
73,728 KB
testcase_24 AC 64 ms
74,040 KB
testcase_25 AC 61 ms
74,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

p = int(input())
s = set()
for i in range(1,10**5):
	s.add(i**2)
for i in range(1,10**5):
	if p - i**2 in s:
		print("Yes")
		exit()
print("No")
0