]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月06日 0 点赞 0 评论 375 浏览 评分:6.0
1074数字整除(无脑四行版) 摘要:提问:直接对17求余可以吗? ```python while True: n = int(input()) if n == 0: break else:print('…… 题解列表 2023年12月06日 0 点赞 0 评论 423 浏览 评分:9.9
c语言数组求差 摘要:解题思路:利用数组求解,通过if判断条件得出max和min注意事项:记得遍历数组参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&…… 题解列表 2023年12月06日 0 点赞 0 评论 360 浏览 评分:9.9
2926: 查找最接近的元素 Python实现,带注释 摘要:解题思路:经过二分查找后,low和high分别会指向比 x 大和比 x 小的元素,计算这两个元素到 x 的距离,返回更小的那个元素值,不清楚的话可以在代码中打印出经过循环后的low和high值。注意事…… 题解列表 2023年12月06日 0 点赞 0 评论 440 浏览 评分:9.9
人口增长问题 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] arg…… 题解列表 2023年12月06日 0 点赞 0 评论 317 浏览 评分:9.9
括弧匹配检验 摘要:解题思路:注意事项:参考代码:def is_matching(expression): stack = [] mapping = {')': '(', &#…… 题解列表 2023年12月06日 0 点赞 0 评论 467 浏览 评分:0.0
LJX........................................................ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x; cin >> x; cout << x…… 题解列表 2023年12月06日 0 点赞 0 评论 453 浏览 评分:9.9
分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; while(~scanf("%d", &a)) { if(a < …… 题解列表 2023年12月06日 0 点赞 0 评论 346 浏览 评分:0.0
三个数比较大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *bigger(int *a, int *b){ if(*a >= *b) { return a; …… 题解列表 2023年12月06日 0 点赞 0 评论 242 浏览 评分:0.0
LJX............................................................... 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,a,b,sum=0,ans=0; cin>>…… 题解列表 2023年12月06日 0 点赞 0 评论 257 浏览 评分:4.7