結果

問題 No.1593 Perfect Distance
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-08-16 16:50:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 82,532 KB
実行使用メモリ 61,524 KB
最終ジャッジ日時 2024-04-17 20:00:36
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,200 KB
testcase_01 AC 34 ms
53,908 KB
testcase_02 AC 38 ms
52,444 KB
testcase_03 AC 37 ms
52,700 KB
testcase_04 AC 35 ms
53,692 KB
testcase_05 AC 36 ms
53,368 KB
testcase_06 AC 37 ms
52,432 KB
testcase_07 AC 33 ms
53,096 KB
testcase_08 AC 36 ms
54,384 KB
testcase_09 AC 42 ms
60,456 KB
testcase_10 AC 40 ms
59,204 KB
testcase_11 AC 41 ms
60,764 KB
testcase_12 AC 45 ms
61,208 KB
testcase_13 AC 44 ms
59,736 KB
testcase_14 AC 46 ms
61,524 KB
testcase_15 AC 45 ms
60,124 KB
testcase_16 AC 52 ms
58,724 KB
testcase_17 AC 36 ms
52,992 KB
testcase_18 AC 33 ms
53,492 KB
testcase_19 AC 32 ms
52,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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