結果
問題 | No.1593 Perfect Distance |
ユーザー |
![]() |
提出日時 | 2022-05-12 12:20:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 86 ms / 2,000 ms |
コード長 | 154 bytes |
コンパイル時間 | 185 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 91,264 KB |
最終ジャッジ日時 | 2024-07-20 05:23:35 |
合計ジャッジ時間 | 2,084 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
N = int(input()) num = set() for i in range(1, N+1): num.add(i**2) res = 0 for i in range(1,N+1): if N**2-i**2 in num: res += 1 print(res)