题解列表

筛选

和与乘积---详细注释

摘要:解题思路:见代码详细注释参考代码:#include<bits/stdc++.h> #define endl "\n" typedef long long ll  ; using namespac……

铲雪车(snow)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int main(){    ll a,b……

用dijkstra优先队列

摘要:#include #define int long long #define endl '\n' using namespace std; typedef pair PII; const……

C语言训练-求1+2!+3!+...+N!的和

摘要:解题思路:先写出每一个数的阶乘的循环体;在加上一个求和即可;(新手小白)注意事项:必须用longlong参考代码:#include <stdio.h>long long fact(int n) { i……

最长公共子序列

摘要:解题思路:从繁至简注意事项:c参考代码:#include <stdio.h>#include <string.h>int max(int a, int b) {    if (a >= b) retu……

万变不离其宗

摘要:解题思路:注意事项:参考代码:#include <stdio.h>    #define N 10010    int f[N], w[N], v[N];    int main() {      i……

万变不离其宗 叫我老翟

摘要:解题思路:注意事项:参考代码:#include <stdio.h>  #include <stdlib.h>    typedef struct node {      int start, end,……

二级C语言——平均值计算

摘要:解题思路:先在循环中把十个数输入并加起来,之后在另一个循环中挨个跟平均数比较,用k统计大于平均数的数;注意事项:需要使用float参考代码:#include <stdio.h>int main(){ ……