-
个人简介
n=int(input()) x=float(input()) fz=1 fm=1 for i in range(1,n+1): j=round(i/x) if j<=n and abs(i/j-x)<abs(fz/fm): fz=i fm=j print(fz) print(fm)
-
最近活动
- 春节快乐!python编程作业(二) 作业
- 寒假快乐!python编程作业(一) 作业
- 周末python编程练习(期中考前练习) 作业
- 周末python编程练习(排序专题) 作业
- 周末python编程练习(2022.10.22) 作业
- 周末python编程练习(2022.10.15) 作业
- 国庆七天乐,编程更快乐。(python) 作业
- 抗击“梅花"之python编程练习 作业
- 中秋快乐之python编程练习 作业
- python编程作业(9.2) 作业
- python编程作业(8.25) 作业
- python冒泡排序 作业
- 暑假Python编程练习三 作业
- 暑假Python编程练习二 作业
- 暑假Python编程练习一 作业
- 周末Python编程练习 作业
- 周末Python编程练习 作业
- 周末Python编程练习 作业
- Python编程练习(5月5日) 作业
- Python编程练习(五一3天乐) 作业
- 周末Python编程练习(队列) 作业
- 周末Python编程练习(字符串) 作业
- 周末python编程练习(链表) 作业
- 周末Python编程练习(数组) 作业
- 周末python编程练习 作业