题解列表

筛选

优质题解

IP判断纯暴力解(c语言题解)

摘要:解题思路:在基于Internet的程序中,我们常常需要判断一个IP字符串的合法性。合法的IP是这样的形式:A.B.C.D其中A、B、C、D均为位于[0, 255]中的整数。为了简单起见,我们规定这四个……

1099: 校门外的树

摘要:``` #include using namespace std; int l,r,L[10001],n,m; int main() { cin>>n>>m; for(int i=0;……

矩阵交换行

摘要:解题思路:注意事项:参考代码:for i in range(5):    ls = list(map(int, input().split()))    a.append(ls)b = list(ma……

2946: 数制转换

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];int a[1……

利用C++完成数组插入处理

摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int ……