結果

問題 No.1593 Perfect Distance
ユーザー minimumminimum
提出日時 2021-07-09 21:24:57
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 379 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 76,796 KB
最終ジャッジ日時 2023-09-14 07:37:13
合計ジャッジ時間 2,875 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,332 KB
testcase_01 AC 71 ms
71,952 KB
testcase_02 AC 69 ms
71,896 KB
testcase_03 AC 72 ms
71,808 KB
testcase_04 AC 77 ms
71,828 KB
testcase_05 AC 72 ms
71,720 KB
testcase_06 AC 73 ms
71,688 KB
testcase_07 AC 73 ms
71,788 KB
testcase_08 AC 73 ms
71,788 KB
testcase_09 AC 80 ms
76,628 KB
testcase_10 AC 79 ms
76,364 KB
testcase_11 AC 87 ms
76,796 KB
testcase_12 AC 90 ms
76,408 KB
testcase_13 AC 90 ms
76,568 KB
testcase_14 AC 92 ms
76,420 KB
testcase_15 AC 98 ms
76,640 KB
testcase_16 AC 106 ms
76,612 KB
testcase_17 AC 73 ms
71,600 KB
testcase_18 AC 74 ms
71,884 KB
testcase_19 AC 72 ms
71,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 0

for i in range(1, n):
    if ((n ** 2 - i ** 2) ** 0.5) % 1 == 0:
        ans += 1

print(ans)
0