2798: 整数序列的元素最大跨度值 摘要:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1…… 题解列表 2025年09月24日 0 点赞 0 评论 361 浏览 评分:0.0
C语言和C++两种写法 摘要:###C语言 无封装#include<stdio.h>#define MAX 100;int main(){ int i,j; int …… 题解列表 2025年09月27日 0 点赞 0 评论 261 浏览 评分:0.0
编写题解 3106: 最优乘车(travel) 摘要:C++代码:```cpp#include #include #include #include using namespace std;const int INF=0x3f…… 题解列表 2025年09月27日 1 点赞 0 评论 202 浏览 评分:0.0
求10000以内n的阶乘 摘要:解题思路:注意事项:Python默认限制了可以转换为字符串的整数的最大位数为4300位。由于10000的阶乘远大于这个限制,因此抛出了ValueError。参考代码:import mathimport…… 题解列表 2025年09月27日 0 点赞 0 评论 237 浏览 评分:0.0
不用switch-case 摘要:解题思路:或的用法注意事项:参考代码:#include <stdio.h>int main() { int day; scanf(&qu…… 题解列表 2025年10月05日 0 点赞 0 评论 97 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:n=int(input())arr=list(map(int,input().split()))a&n…… 题解列表 2025年10月05日 0 点赞 0 评论 83 浏览 评分:0.0
利用if语句与while循环 摘要:解题思路:使用if语句将输入为0的特殊情况独立出来,当输入非0时,使用while循环实现运算参考代码:#include<stdio.h>int main(){ i…… 题解列表 2025年10月05日 0 点赞 0 评论 93 浏览 评分:0.0
C++选择排序从小到大 摘要:#include<iostream>using namespace std;int main(){ int arr[10]; int min…… 题解列表 2025年10月06日 0 点赞 0 评论 235 浏览 评分:0.0
C比较三个字符串字符数组长度(结合冒泡排序) 摘要:#include<stdio.h>#include<string.h>int main(){ char arr[3][1000]; &nb…… 题解列表 2025年10月06日 0 点赞 0 评论 152 浏览 评分:0.0
C 转换数据类型后求余数 摘要:参考代码:#include<stdio.h>int main(){ double a,b,c,d; scanf("%lf%lf…… 题解列表 2025年10月06日 1 点赞 0 评论 169 浏览 评分:0.0