結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
Fullmoon85072
|
| 提出日時 | 2021-11-28 15:08:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 36 ms / 2,000 ms |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 84,956 KB |
| 実行使用メモリ | 63,272 KB |
| 最終ジャッジ日時 | 2026-03-22 07:11:56 |
| 合計ジャッジ時間 | 1,637 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
import math
N = int(input())
twoN = math.pow(N, 2)
count = 0
for x in range(N):
y = math.sqrt(twoN - math.pow(x+1, 2))
if y > 1 and y == int(y):
count += 1
print(count)
Fullmoon85072