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