結果
| 問題 |
No.1593 Perfect Distance
|
| ユーザー |
|
| 提出日時 | 2024-09-10 19:12:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 2,000 ms |
| コード長 | 133 bytes |
| コンパイル時間 | 379 ms |
| コンパイル使用メモリ | 81,744 KB |
| 実行使用メモリ | 76,152 KB |
| 最終ジャッジ日時 | 2024-09-10 19:12:27 |
| 合計ジャッジ時間 | 2,620 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)