题解列表

筛选

2939: 最匹配的矩阵

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int SUM(int r,int s,int a[r][s],int b[r][s]){  ……

水仙花数判断

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int a,b,c,d;     for(a=100;a<1000;a++)     {     b=……

二级C语言-平均值计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int a[10];     int i,sum=0,ang=0,temp=0;//定义初始化,及其计……

判断逗号的输出个数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){    int N, M,count=0;    int a[5000]; ……

tarjan + lca + 树上差分

摘要:# 思路 * 主要讲讲怎么在边上树上差分吧 具体的思路就是,将要查询`diff[u] +=1,diff[v] += 1, diff[lca]-=2`,然后 * 状态一 ![](/image……

编写题解 1670: 拆分位数

摘要:解题思路:方法一:我们可以定义一个字符串。注意事项:参考代码:#include<iostream> using namespace std; string n; int main() {  ……

1670: 拆分位数

摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){    int n;    cin>>n;    cout<<n……