結果
問題 |
No.1593 Perfect Distance
|
ユーザー |
|
提出日時 | 2022-01-08 18:41:12 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 142 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 82,340 KB |
実行使用メモリ | 67,432 KB |
最終ジャッジ日時 | 2024-11-14 09:43:13 |
合計ジャッジ時間 | 2,275 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | AC * 1 RE * 16 |
ソースコード
N = int(input()) ans = 0 from math import sqrt for x in range(1,N): yy = N *N - x * x if yy == int(sqrt(y)) ** 2:ans += 1 print(ans)