結果

問題 No.1593 Perfect Distance
ユーザー sasa8uyauyasasa8uyauya
提出日時 2023-10-09 20:15:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 420 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 77,052 KB
最終ジャッジ日時 2023-10-09 20:15:23
合計ジャッジ時間 3,165 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,416 KB
testcase_01 AC 67 ms
71,944 KB
testcase_02 AC 63 ms
71,524 KB
testcase_03 AC 65 ms
71,788 KB
testcase_04 AC 63 ms
71,636 KB
testcase_05 AC 62 ms
71,988 KB
testcase_06 AC 64 ms
71,536 KB
testcase_07 AC 64 ms
71,732 KB
testcase_08 AC 63 ms
71,824 KB
testcase_09 AC 70 ms
76,916 KB
testcase_10 AC 71 ms
76,528 KB
testcase_11 AC 77 ms
76,820 KB
testcase_12 AC 78 ms
77,028 KB
testcase_13 AC 78 ms
77,052 KB
testcase_14 AC 91 ms
76,916 KB
testcase_15 AC 85 ms
76,916 KB
testcase_16 AC 94 ms
76,668 KB
testcase_17 AC 66 ms
71,648 KB
testcase_18 AC 63 ms
71,848 KB
testcase_19 AC 64 ms
71,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=0
for x in range(1,n):
	y=n**2-x**2
	a+=int(y**0.5)**2==y
print(a)
0