結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-10 19:12:24 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| + 84µs | |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 250 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 84,096 KB |
| 最終ジャッジ日時 | 2026-08-25 16:49:23 |
| 合計ジャッジ時間 | 3,356 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
from math import isqrt N = int(input()) c = 0 for x in range(1, N): if isqrt(N * N - x * x) ** 2 == N * N - x * x: c += 1 print(c)