NoobDream 首页 DreamJudge 院校信息 考研初试 考研复试 保研专区 讨论区 兑换中心
登录 注册 上岸
    头像
    P1126 生化武器 题解:BFS
    快乐小土狗
    #include <iostream> #include <vector> #include <queue> #include <utility> using namespace std; int main() { i...
    头像
    P2011 字符串替换 题解:
    adue
    #include<stdio.h> #include<string> #include<string.h> using namespace std; int main(){     char a[1000]; &nb...
    头像
    P2019 字母排序 题解:
    adue
    #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; struct zimu{     char c;  ...
    头像
    P4356 二叉树的深度 题解:
    esmond564
    #include<bits/stdc++.h> using namespace std; struct Node {     char val;     Node *left,*right;  &nb...
    头像
    P1566 确定比赛名次 题解:C语言版-无需使用队列
    wenganzhong
    #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define maxsize 520 #define INF 0x3f3f3f3f //图的结构 int Edge...
    头像
    P1126 题目中的“ t 秒时间内刚好充满”个人感觉有歧义,但是两种理解却都能 AC
    Dear_Mr_He
    #include<iostream> #include<cstring> #include<queue> using namespace std; const int maxn = 30 + 2; char mpt[maxn][maxn];...
    头像
    P1010 排序 题解:巧用sort
    zsz200268
    #include<bits/stdc++.h> using namespace std; bool josort(int a,int b){     if((a % 2) != (b % 2))     &nb...
    头像
    P1724 斐波那契数列加强版 题解:开 10^6 大小的数组,能过 75% 的测试用例
    qtexpsem
    #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define MOD 1000000007 #define MAX...
    头像
    P1454 反序数 题解:
    18919717626
    善用c++函数老简单了。 #include<bits/stdc++.h> using namespace std; int main(){     for(int i=1;i<=2000;i++){    &nb...
    头像
    P1178 进制转换 题解:
    18919717626
    #include<bits/stdc++.h> using namespace std; bool isZero(string s){     for(char c:s){        &nb...
    头像
    P5105 集合中的相同元素 题解:
    Eleven00
    int main(){ int N; scanf("%d",&N); int a[N],b[N],c[N]; int sameSum = 0; for (int i = 0; i < N; i++) ...
    头像
    P1319 畅通工程2 题解:C语言/查并集/路径压缩且优化
    OOOOOIN
    #include<stdio.h> #include<stdlib.h> #include<string.h> #define M 1010 int arr[M];//集 int d[M];//权值 void initial() { ...
    头像
    P1821 a与b得到c 题解:
    2022214449
    #include <iostream> #include <bits/stdc++.h> using namespace std; void work(int a,int b,int c){         if(a+...
    头像
    P5111 求三角形面积 题解:
    Z_Big_J
    #include<bits/stdc++.h> using namespace std; int main(){     int x1,y1,x2,y2,x3,y3;     while(cin >> ...
    头像
    P1175 剩下的树 题解:设置个全部数组,移掉的树置1,最后统计数组0的个数
    岸上的乌龟
    #include <bits/stdc++.h> using namespace std; int buf[10000]; int main() {     int l,m;     while(cin>>l>&...
    头像
    P1225 谁是你的潜在朋友 题解:map和vector
    岸上的乌龟
    #include <bits/stdc++.h> using namespace std; int main() {     int n,m;     cin>>n>>m;     ma...
    头像
    P1098 前缀字符串 题解:想出这个解法的天才来的!
    岸上的乌龟
    #include <bits/stdc++.h> using namespace std; int main() {     //不会写,看的别人代码     int n;     while(cin>&...
    头像
    P2006 字符串对齐 题解:C语言版
    wenganzhong
    #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<ctype.h> #define maxsize 300 #define INF 0x3f3...
    头像
    P1569 完全背包问题 题解:c++
    bro
    #include <iostream> #include <set> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib....
    头像
    P1086 采药 题解:c++
    bro
    #include <iostream> #include <set> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib....
    头像
    P1259 进制转换2 题解:
    StarGazer
    #include<bits/stdc++.h> using namespace std ; int main(){          string s;     while ...
    头像
    P1273 Simple Sorting 题解:
    mlx
    #include<iostream> #include<set> using namespace std; const int N=1e4+10; int n; set<int> s; int main() { c...
    头像
    P5128 喝饮料问题 题解:
    秋砚舟
    #include<iostream> #include<vector> #include<algorithm> using namespace std; struct juice {     int m;   &n...
    头像
    P1198 7 题解:
    mlx
    #include<iostream> using namespace std; int n,res; bool check(int x) { if(x%7==0) return true; while(x) { ...
    头像
    P3666 单词翻转 题解:
    秋砚舟
    #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() {     vector<stri...
    头像
    P1188 遍历A数组,在B数组二分查找x-a[i]:
    mlx
    #include<iostream> using namespace std; const int N=1e5+10; int n,m,x; int a[N],b[N]; int main() { cin>>n>>m&g...
    头像
    P2013 求斐波那契数列的第n项 题解:
    秋砚舟
    #include<iostream> #include<vector> using namespace std; int main() {     vector<int> ans = {1,1};  &nb...
    头像
    P1447 编排字符串 题解:
    mlx
    #include<iostream> using namespace std; const int N=110; int m; char s[N][N]; int main() { int m; cin>>m; ...
    头像
    P1264 二叉树2 题解:左右边界法
    linxiaolou
    #include <stdio.h> #include <math.h> #include <string.h> #include <algorithm> using namespace std;   ...
    头像
    P2014 找出众数 题解:
    秋砚舟
    #include<iostream> #include<vector> using namespace std; int main() {     int n;     cin >> n...
    头像
    P1344 最短路径问题 题解:c++
    bro
    #include <iostream> #include <set> #include <stdio.h> #include <string.h> #include <math.h> #include <stdlib....
    头像
    P1349 互换最大最小数 题解:
    mlx
    #include<iostream> using namespace std; const int N=21,inf=0x3f3f3f3f; int n,a[N]; int pos1,pos2; int main() { cin>>...
    头像
    P1206 删除公共字符 题解:
    mlx
    #include<iostream> #include<map> using namespace std; string a,b; map<char,int> m; int main() { getline(cin,...
    头像
    P1290 日期差值 题解:
    czyaaa
    同一年和不同年的情况分开考虑 #include <iostream> using namespace std; bool isRun(int year) { if( year % 400 == 0 || (year % 4 == 0 &&...
    头像
    P5290 四舍五入问题 题解:C++
    LEtranger
    #include<iostream> #include<vector> using namespace std; int main(){ int n; cin >> n; int a, b, c; int integer = 0...
    头像
    P1532 字符串编辑距离 题解:C++
    LEtranger
    #include <iostream> #include <vector> #include <string> #include <cmath> using namespace std; string s1, s2; vector...
    头像
    P1047 分数求和 题解:C++
    LEtranger
    #include<iostream> using namespace std; int main(){ int n; cin >> n; double sum = 0; double a = 2, b = 1; for(int...
    头像
    P5365 分数化小数 题解:C++
    LEtranger
    #include<iostream> #include<vector> using namespace std; int main(){ int n; cin >> n; int a, b, c; int integer = 0...
    头像
    P5364 雨后圆子 题解:C++
    LEtranger
    #include<iostream> #include<vector> #include<string> using namespace std; int n, m; vector<string> map; // 方向矩阵 ...
    头像
    P5363 显示柱状图 题解:
    LEtranger
    #include<bits/stdc++.h> using namespace std; int main() { int n, x = 0; cin >> n; int top = 0, bot = 0; // 记录最高和最低 vector...
    头像
    P1975 极大连通图个数 题解:C++
    LEtranger
    #include<iostream> #include<vector> #include<string> using namespace std; int n, m; vector<string> map; // 方向矩阵 ...
    头像
    P1796 特别的除法 题解:
    LEtranger
    #include<iostream> #include<vector> using namespace std; int main(){ int a, b, c; int integer = 0, rem = 0; vector<int&...
    头像
    P5384 乘法奥义 题解:C++
    LEtranger
    /* 解析参考P5318 矩阵链乘法最小值 */ #include <iostream> #include <vector> #include <cmath> #include <climits> using namespace...
    头像
    P5383 矩阵单词查找与替换 题解:C++
    LEtranger
    #include<bits/stdc++.h> using namespace std; int n, m; vector<string> matrix, ans; bool flag = false; string s = "hello"; ...
    头像
    P5382 最大数组距离 题解:
    LEtranger
    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; vector<vector<int>> matrix; // 输入 ...
    头像
    P5319 有向图最长路径问题 题解:C++
    LEtranger
      #include <iostream> #include <vector> #include <climits> using namespace std; int main() { int n, m, S, T;...
    头像
    P5318 矩阵链乘法最小计算次数 题解:C++
    LEtranger
    #include <iostream> #include <vector> #include <cmath> #include <climits> using namespace std; vector<int> n...
    头像
    P1667 优美的双指针:
    mlx
    #include<iostream> using namespace std; string str; string target="EASY"; int main() { while(cin>>str) { ...
    头像
    P5317 单词方阵 题解:
    LEtranger
    #include <iostream> #include <vector> #include <string> using namespace std; int N; vector<string> matrix; int n;...
    头像
    P5316 最大差值 题解:
    LEtranger
    #include<iostream> #include<vector> #include<cmath> using namespace std; int main(){ int n; cin >> n; if(n...
    • 1
    • 2
我要提问
全站热榜
1 无法正确通过题目都是哪些原因造成的?
2 机试如何才能快速提高?
3 [置顶]计算机考研择校分析【25考研必读】
4 题目难点:数学公式不断化解
5 详细题解(站在巨人的肩膀上)
6 A+B问题 题解:C
7 逻辑很简单,但是实现却要小心多多
8 【25计算机考研】39所985院校录取分数线汇总
9 广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10 2048游戏 题解:简洁实现
关于我们 加入我们 友情链接
NoobDream       The road of your choice, you have to go on !       粤ICP备16082171号-1

哔哩哔哩

官方微信

官方微博