結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
75,904 KB
testcase_01 AC 69 ms
71,556 KB
testcase_02 AC 69 ms
71,108 KB
testcase_03 AC 69 ms
70,992 KB
testcase_04 AC 75 ms
71,436 KB
testcase_05 AC 71 ms
71,312 KB
testcase_06 AC 73 ms
75,476 KB
testcase_07 AC 75 ms
75,556 KB
testcase_08 AC 79 ms
75,928 KB
testcase_09 AC 231 ms
75,744 KB
testcase_10 AC 1,639 ms
75,924 KB
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):
    yy = n * n - x * x
    i = 1
    while i*i<=yy:
        if i * i == yy:
            ret += 1
        i += 1

print(ret)
0