优质题解 IP判断纯暴力解(c语言题解) 解题思路:在基于Internet的程序中,我们常常需要判断一个IP字符串的合法性。合法的IP是这样的形式:A.B.C.D其中A、B、C、D均为位于[0,255]中的整数。为了简单起见,我们规定这四个整数中不允许有前导零存在,如001这种情况。 题解列表 2023年11月28日 302 点赞 1 评论 3343 浏览 评分:8.0
1099: 校门外的树 摘要:``` #include using namespace std; int l,r,L[10001],n,m; int main() { cin>>n>>m; for(int i=0;…… 题解列表 2023年11月28日 0 点赞 0 评论 439 浏览 评分:8.0
输出第二个数字 哈哈哈哈简直不要太基础 摘要:参考代码:#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年11月29日 10 点赞 0 评论 1222 浏览 评分:8.0
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<stdio.h>int main(){ int m, n,i,k,f; scanf_s("%d %d", &m, &n); if (m > n) { k = m; m = …… 题解列表 2023年11月29日 0 点赞 0 评论 531 浏览 评分:8.0
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 767 浏览 评分:8.0
优质题解 题解 3173: 蓝桥杯2023年第十四届省赛真题-蜗牛(动态规划,Java) 解题思路:动态规划两个数组变量://坐标原点距竹子传送点最短时间//minStart[i]代表坐标原点距第i个竹子上的传送点的最短时间,i从1开始double[]minStart=newdouble[n];//坐标原点距竹子底部最短时间//minBottom[i]代表坐标原点距第i个竹子底部的最短时间 题解列表 2023年12月02日 862 点赞 0 评论 10764 浏览 评分:8.0
2946: 数制转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];int a[1…… 题解列表 2023年12月02日 0 点赞 0 评论 826 浏览 评分:8.0
2182: [编程入门]打印图案 c++萌新 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {cout <<" *"<<endl;cout <<" * *"<…… 题解列表 2023年12月04日 0 点赞 0 评论 1664 浏览 评分:8.0
利用C++完成数组插入处理 摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int …… 题解列表 2023年12月04日 0 点赞 0 评论 684 浏览 评分:8.0
题目 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码: #include #include int main() { int M,N; …… 题解列表 2023年12月07日 0 点赞 0 评论 507 浏览 评分:8.0