結果

問題 No.1593 Perfect Distance
ユーザー minimumminimum
提出日時 2021-07-09 21:24:57
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 114 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 297 ms
使用メモリ 81,368 KB
最終ジャッジ日時 2023-02-01 21:55:13
合計ジャッジ時間 3,340 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 82 ms
75,624 KB
testcase_01 AC 80 ms
76,204 KB
testcase_02 AC 81 ms
76,128 KB
testcase_03 AC 82 ms
76,288 KB
testcase_04 AC 81 ms
76,068 KB
testcase_05 AC 81 ms
76,084 KB
testcase_06 AC 80 ms
75,968 KB
testcase_07 AC 81 ms
76,184 KB
testcase_08 AC 83 ms
76,112 KB
testcase_09 AC 89 ms
81,344 KB
testcase_10 AC 89 ms
81,096 KB
testcase_11 AC 94 ms
81,256 KB
testcase_12 AC 98 ms
81,108 KB
testcase_13 AC 98 ms
81,132 KB
testcase_14 AC 100 ms
81,244 KB
testcase_15 AC 107 ms
81,368 KB
testcase_16 AC 114 ms
81,112 KB
testcase_17 AC 81 ms
76,176 KB
testcase_18 AC 80 ms
75,852 KB
testcase_19 AC 80 ms
75,972 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