結果
| 問題 | No.1593 Perfect Distance |
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2021-07-09 21:37:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 143 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 95,596 KB |
| 実行使用メモリ | 98,944 KB |
| 最終ジャッジ日時 | 2026-08-03 09:25:36 |
| 合計ジャッジ時間 | 3,713 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 RE * 9 |
ソースコード
a=[0]*1000000
for i in range(1,1000):
a[i*i]+=1
ans=0
n=int(input())
for i in range(1,1000):
if i<n and a[n**2-i**2]:
ans+=1
print(ans)
とりゐ