結果
問題 |
No.1593 Perfect Distance
|
ユーザー |
|
提出日時 | 2021-07-09 21:57:22 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 162 bytes |
コンパイル時間 | 186 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-07-01 16:13:57 |
合計ジャッジ時間 | 4,130 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 5 WA * 4 TLE * 1 -- * 7 |
ソースコード
n = int(input()) lim = int(((n**2)//2)**.5)+1 cnt = 0 for i in range(1,lim): for j in range(1,lim): if i**2+j**2==n**2: cnt+= 1 print(cnt)