結果

問題 No.1593 Perfect Distance
ユーザー mrngmrng
提出日時 2021-12-13 18:33:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 1,008 ms
コンパイル使用メモリ 87,304 KB
実行使用メモリ 76,912 KB
最終ジャッジ日時 2023-09-29 23:26:42
合計ジャッジ時間 3,716 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,176 KB
testcase_01 AC 67 ms
71,712 KB
testcase_02 AC 72 ms
71,440 KB
testcase_03 AC 71 ms
71,836 KB
testcase_04 AC 68 ms
71,840 KB
testcase_05 AC 67 ms
71,720 KB
testcase_06 AC 70 ms
71,748 KB
testcase_07 AC 68 ms
71,676 KB
testcase_08 AC 70 ms
71,648 KB
testcase_09 AC 77 ms
76,732 KB
testcase_10 AC 78 ms
76,608 KB
testcase_11 AC 84 ms
76,628 KB
testcase_12 AC 87 ms
76,912 KB
testcase_13 AC 88 ms
76,692 KB
testcase_14 AC 91 ms
76,844 KB
testcase_15 AC 98 ms
76,716 KB
testcase_16 AC 104 ms
76,548 KB
testcase_17 AC 69 ms
71,780 KB
testcase_18 AC 68 ms
71,916 KB
testcase_19 AC 68 ms
71,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ans = 0
for x in range(1,n):
    if (n*n-x*x)**0.5==int((n*n-x*x)**0.5):
        ans += 1
print(ans)
0