結果

問題 No.1593 Perfect Distance
ユーザー ShirotsumeShirotsume
提出日時 2021-07-09 21:27:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-14 07:46:04
合計ジャッジ時間 19,448 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 861 ms
7,920 KB
testcase_01 AC 849 ms
7,776 KB
testcase_02 AC 796 ms
7,816 KB
testcase_03 AC 797 ms
7,956 KB
testcase_04 AC 786 ms
7,808 KB
testcase_05 AC 799 ms
7,776 KB
testcase_06 AC 901 ms
7,880 KB
testcase_07 AC 904 ms
7,916 KB
testcase_08 AC 923 ms
7,916 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 852 ms
7,856 KB
testcase_18 AC 838 ms
7,912 KB
testcase_19 AC 917 ms
7,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(ans)

0