結果

問題 No.1593 Perfect Distance
ユーザー osm ibtosm ibt
提出日時 2021-07-10 12:23:23
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 138 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 80,568 KB
最終ジャッジ日時 2023-09-14 18:51:10
合計ジャッジ時間 7,759 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
75,796 KB
testcase_01 AC 69 ms
71,156 KB
testcase_02 AC 71 ms
71,480 KB
testcase_03 AC 70 ms
71,616 KB
testcase_04 AC 71 ms
70,992 KB
testcase_05 AC 71 ms
71,176 KB
testcase_06 AC 73 ms
75,728 KB
testcase_07 AC 76 ms
75,488 KB
testcase_08 AC 82 ms
76,372 KB
testcase_09 AC 333 ms
76,376 KB
testcase_10 TLE -
testcase_11 TLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ret = 0
for x in range(1, n):
    for y in range(1, n):
        if x * x + y * y == n*n:
            ret += 1
print(ret)
0