题解列表

筛选

P1000 题解(c++简单)

摘要:解题思路:不就是加法嘛,还不会!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int x,y;int main(){ scanf("%d……

简单的背包问题

摘要:解题思路:简单的背包问题注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;int main(){    int ……

超级简洁易懂c语言代码

摘要:解题思路:注意事项:一定不要忘记初始化数组,试了好多次都是错的,最后把数组初始化一下就对了!参考代码:#include #include int main () {     char sz1[25……
优质题解

蓝桥杯2020年第十一届国赛真题-补给 题解

摘要:**解题思路:** *状压DP + 最短路径:* w[i][j]:从村庄 i 到村庄 j 之间的最短距离; f[i][j]:从村庄 0 走到村庄 j ,且经过经过村庄的状态为 i 的最小飞行距离……

三目运算符

摘要:参考代码:#include<stdio.h>int main(){  int a, b, c,t;   scanf("%d %d %d", &a, &b, &c);  a > b ? t = a, a……

菜bird级别!!!!!!

摘要:解题思路:就数组注意事项:注意he初始值是随机的,要赋初值为零参考代码:#include <stdio.h>int main(void){ int i, num[10], he=0, ge=0; fo……