摘要: D. Strange Fractions $\frac{a}{b}=x$ 原式即 $x + \frac{1}{x} = \frac{p}{q}$ 解方程然后$\delta$为整数即可算出对应的$a$和$b$ #include <bits/stdc++.h> using namespace std; 阅读全文
posted @ 2022-09-19 01:55 si_nian 阅读(68) 评论(0) 推荐(0)