結果

問題 No.1593 Perfect Distance
ユーザー dangodango
提出日時 2023-06-14 19:38:45
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 97 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 86,884 KB
実行使用メモリ 76,320 KB
最終ジャッジ日時 2023-09-05 06:13:00
合計ジャッジ時間 3,148 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,312 KB
testcase_01 AC 70 ms
71,592 KB
testcase_02 AC 71 ms
71,500 KB
testcase_03 AC 70 ms
71,816 KB
testcase_04 AC 72 ms
71,284 KB
testcase_05 AC 71 ms
71,732 KB
testcase_06 AC 72 ms
71,284 KB
testcase_07 AC 74 ms
71,740 KB
testcase_08 AC 73 ms
71,760 KB
testcase_09 AC 78 ms
76,320 KB
testcase_10 AC 79 ms
75,776 KB
testcase_11 AC 82 ms
76,024 KB
testcase_12 AC 83 ms
76,124 KB
testcase_13 AC 83 ms
75,792 KB
testcase_14 AC 85 ms
75,968 KB
testcase_15 AC 88 ms
76,168 KB
testcase_16 AC 94 ms
75,968 KB
testcase_17 AC 71 ms
71,428 KB
testcase_18 AC 75 ms
71,508 KB
testcase_19 AC 73 ms
71,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
print(sum(1 for i in range(1, N) if int((Y := N * N - i * i) ** 0.5) ** 2 == Y))
0