結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-27 19:29:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 491 ms |
| コンパイル使用メモリ | 20,808 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2026-05-16 09:02:46 |
| 合計ジャッジ時間 | 5,422 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | AC * 9 TLE * 1 -- * 7 |
ソースコード
n = int(input())
nn = n ** 2
c = 0
for x in range(1,n):
for y in range(n,1,-1):
s = x ** 2 + y ** 2
if s == nn:
# print(str(x) + ":" + str(y))
c = c + 1
elif s < nn:
break
print(c)