結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-09 21:57:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 162 bytes |
| 記録 | |
| コンパイル時間 | 378 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 31,064 KB |
| 最終ジャッジ日時 | 2026-03-22 18:23:11 |
| 合計ジャッジ時間 | 26,498 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 5 WA * 4 TLE * 8 |
ソースコード
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)