結果

問題 No.1593 Perfect Distance
ユーザー marroncastlemarroncastle
提出日時 2021-07-09 23:53:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 87,356 KB
実行使用メモリ 76,776 KB
最終ジャッジ日時 2023-09-14 11:19:51
合計ジャッジ時間 2,987 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,464 KB
testcase_01 AC 74 ms
71,768 KB
testcase_02 AC 74 ms
71,812 KB
testcase_03 AC 75 ms
71,720 KB
testcase_04 AC 74 ms
71,812 KB
testcase_05 AC 75 ms
71,768 KB
testcase_06 AC 75 ms
71,812 KB
testcase_07 AC 76 ms
71,812 KB
testcase_08 AC 76 ms
71,748 KB
testcase_09 AC 84 ms
76,776 KB
testcase_10 AC 85 ms
76,368 KB
testcase_11 AC 89 ms
76,528 KB
testcase_12 AC 91 ms
76,712 KB
testcase_13 AC 91 ms
76,692 KB
testcase_14 AC 94 ms
76,528 KB
testcase_15 AC 99 ms
76,548 KB
testcase_16 AC 104 ms
76,420 KB
testcase_17 AC 75 ms
71,768 KB
testcase_18 AC 75 ms
71,712 KB
testcase_19 AC 74 ms
71,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for x in range(1,N):
    yy = N*N-x*x
    if round(yy**.5)**2==yy: ans += 1
print(ans)
0