题解列表
LJX........................................................
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x……
2926: 查找最接近的元素 Python实现,带注释
摘要:解题思路:经过二分查找后,low和high分别会指向比 x 大和比 x 小的元素,计算这两个元素到 x 的距离,返回更小的那个元素值,不清楚的话可以在代码中打印出经过循环后的low和high值。注意事……
1074数字整除(无脑四行版)
摘要:提问:直接对17求余可以吗?
```python
while True:
n = int(input())
if n == 0: break
else:print('……
]最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args……
自定义函数之字符串拷贝
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str1[100],str2[100]; int m, n,i,j; scanf("%d", &n);……