主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
发布
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P1185
全排列 题解:为什么显示wrong answer
今夕何夕12211
回复 1
|
赞 0
|
浏览 162
#include <stdio.h> #include <stdlib.h> #include <string.h> void swap(char a[],int m,int n) { char temp=a[m]; ...
P1307
组队刷题 题解:为什么不对 我这个struct就多定义了一个 就只能ac20%
08193003
回复 3
|
赞 0
|
浏览 191
#include<bits/stdc++.h> using namespace std; struct bankuai{ double a; double b; double c=b/a; }aa[1005]; bool cmp(bankuai a1,...
P1563
迷宫 题解 为什么显示runtime error 求教
今夕何夕12211
回复 1
|
赞 0
|
浏览 138
#include <stdio.h> #include <stdlib.h> #include <string.h> struct node { int x; int y; ...
P1474
大整数加法 题解:C语言只有50%
williams
回复 1
|
赞 0
|
浏览 211
#include <stdio.h> #include <stdbool.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <...
P1027
删除字符串2 题解:
20082123
回复 0
|
赞 0
|
浏览 199
暴力 #include<string> #include<iostream> using namespace std; int main(){ string s; int k1,...
P1026
删除字符串 题解:
20082123
回复 0
|
赞 0
|
浏览 139
#include<bits/stdc++.h> using namespace std; int main(){ string s; int k; cin&g...
P1022
删除最大最小数 题解:
20082123
回复 0
|
赞 0
|
浏览 167
PYTHON n=int(input()) max=0 min=666666 k=input() b=k.split(' ') for j in b: if(int(j)>max): &n...
P4777
二叉树叶结点的个数 题解:
LittleEleven
回复 0
|
赞 0
|
浏览 95
#include<bits/stdc++.h> using namespace std; int ans; int dfs(){ char ch; cin>>ch; ...
P1151
成绩排序 题解:
peterzhou
回复 1
|
赞 1
|
浏览 801
#include <bits/stdc++.h> using namespace std; int n,flag; struct Stu{ string name; int score; }; bool cm...
P1541
字符串处理-单词统计 题解:我感觉代码有问题,但是不知道问题在哪里通过率66%,
泛泛之交
回复 2
|
赞 0
|
浏览 175
#include<bits/stdc++.h> using namespace std; int main() { string s; getline(cin,s); ...
P1410
打印日期 题解:求大佬解释下为什么只有60%通过率
泛泛之交
回复 2
|
赞 0
|
浏览 192
#include <bits/stdc++.h> using namespace std; int month[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; int main() { ...
P1019
字母频率 题解:
20082123
回复 0
|
赞 0
|
浏览 135
#include<bits/stdc++.h> using namespace std; int main(){ string s; int k,max=0;  ...
P1016
字符分类 题解:
20082123
回复 0
|
赞 0
|
浏览 146
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; &nbs...
P1014
加密算法 题解:
20082123
回复 0
|
赞 1
|
浏览 223
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); &n...
P1013
判断素数 题解:
20082123
回复 0
|
赞 0
|
浏览 214
#include<bits/stdc++.h> using namespace std; bool sx(int a){ if(a<2)//边界情况 re...
P1012
字符移动 题解:
20082123
回复 0
|
赞 0
|
浏览 214
#include<bits/stdc++.h> using namespace std; int main(){ string s; int j=0; cin...
P1052
学生成绩管理 题解:上机前最后一个题解
孙某人
回复 0
|
赞 0
|
浏览 150
#include <iostream> #include <string.h> #include <math.h> #include <algorithm> using namespace std; typedef struct s...
P1022
删除最大最小数 题解:c++
huanghu
回复 3
|
赞 0
|
浏览 279
#include<stdio.h> #include<iostream> using namespace std; int main(){ int n; cin>>n; int arr[n]...
P1798
数组排序 题解:
FAFAFAFA
回复 0
|
赞 0
|
浏览 211
#include<bits/stdc++.h> using namespace std; int main(){ int a[1000]; char s; i...
P1022
删除最大最小数 题解:
Amberqwe
回复 2
|
赞 0
|
浏览 314
为什么一直是百分之75? #include<stdio.h> int pai(int a[],int n) { int temp; for(int i=0; i<n; ...
P1025
链表合并 题解:c实现
williams
回复 2
|
赞 0
|
浏览 342
#include <stdio.h> #include <stdbool.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <...
P1904
重复数字 题解:超详细c++
damowanghwj
回复 0
|
赞 0
|
浏览 178
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 5;//不知道具体多少数以及数的大小 就尽量设置大一些 int a[N]; int flag[N]; string str; int...
P1020
最长连续因子 题解:
熹微
回复 0
|
赞 0
|
浏览 178
c语言暴力求解与时间复杂度为O(n)的求解 暴力求解 void Fac(int a[],int *n){ int i = *n,j=0,temp; while (i>1){ if( *n % i == 0 ){ a[...
P1015
单链表 题解:小伙伴们可以帮我检查一下哪里有问题吗?0%
为欢几何
回复 2
|
赞 0
|
浏览 239
#include<bits/stdc++.h> using namespace std; struct Node { int Element; // 节点中的元素为整数类型 struct Node * Next; //...
P1025
链表合并 题解:0%,不知道哪里有问题,谢谢小伙伴们帮我看看
为欢几何
回复 2
|
赞 0
|
浏览 300
#include<bits/stdc++.h> using namespace std; struct node{ int n; struct node *next; }; //创建链表 struct node*...
P1422
进制转换3 题解:思想:m->10->n
中国人民万岁
回复 0
|
赞 0
|
浏览 171
#include <bits/stdc++.h> using namespace std; #define ll long long int val(char x) { if (x >= '0' &&a...
P1855
最大公共子串 题解:高分篇 dp 多了一个记录最长公共子串条件
damowanghwj
回复 0
|
赞 0
|
浏览 128
#include<bits/stdc++.h> using namespace std; int dp[105][105]; int main(){ string s1,s2; cin >> s1 >> s2; i...
P1196
单词替换 题解:自用笔记(C语言)
zx142407789
回复 0
|
赞 0
|
浏览 133
#include<stdio.h> #include<string.h> int main() { char str[20][100];//采用二维数组,以一个字符串为一个数据元素,看成字符串数组 ...
P1163
求最大最小数 题解:
Amberqwe
回复 1
|
赞 0
|
浏览 175
百分之80,怎么解决啊 #include <stdio.h> int main() { int a, b[1000000]; while (scanf("%d",...
P1025
链表合并 题解:
熹微
回复 0
|
赞 0
|
浏览 191
每日一题 c语言 #include<stdio.h> typedef struct Node{ int num; struct Node *Next; }node; void Meg(node ...
P1179
密码翻译 题解:
Amberqwe
回复 1
|
赞 0
|
浏览 152
其他软件正确,这里是错误 #include <stdio.h> #include <string.h> int main() { char s[80]; while(gets(s)...
P1329
统计同成绩学生人数 题解:
Amberqwe
回复 1
|
赞 0
|
浏览 164
为啥只有75% #include <stdio.h> int main() { int n, a[1000], grade; int cnt = 0;  ...
P1015
单链表 题解:
熹微
回复 0
|
赞 0
|
浏览 224
C语言 边输入一个数据边进行链表插入 了解一下 #include<stdio.h> typedef struct Node{ int num; struct Node *Next; }node; i...
P1007
整除 题解:C++
kar
回复 0
|
赞 0
|
浏览 220
#include <iostream> using namespace std; int main() { int sum = 0; for (int i = 100; i <=1000; i...
P1020
最长连续因子 题解:求大神解答一下,通过率只有80%,不知道哪里出问题了
18237466773
回复 2
|
赞 0
|
浏览 249
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){  ...
P5129
简单的背包问题 题解:
望雨天
回复 0
|
赞 0
|
浏览 318
其实就是最基础的0,1背包问题的变体 这里只需要在基础的0,1背包问题中,将每个物体的重量和体积设置为相同 那么,能够装入的最大重量一定是小于等于体积的 如果能够装入的最大重量与背包体积相等,那么说明有解,否则无解 #include <...
P1360
字符串内排序 题解:C
lingdongyang
回复 4
|
赞 0
|
浏览 290
#include<stdio.h> #include<string.h> #include<stdlib.h> int st_in(const void* elem1, const void* elem2) { return strcmp(...
P1281
计算表达式 题解:
damowanghwj
回复 0
|
赞 0
|
浏览 131
#include<bits/stdc++.h> using namespace std; string str; int GetPriority(char ch){ if(ch == '#') return 0; else if(ch == '$') ...
P1168
特殊乘法 题解:
Amberqwe
回复 0
|
赞 0
|
浏览 113
百分之40 #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int a,...
P1172
最大序列和 题解:
huanghu
回复 0
|
赞 0
|
浏览 161
#include<iostream> using namespace std; long long dp[1000000]; long long list[1000000]; int main(){ int n; while(cin>>n){ ...
P1448
充分利用容器特性
yanmy
回复 0
|
赞 0
|
浏览 124
#include <iostream> #include <map> #include <vector> #include <set> using namespace std; int main() { int m; ...
P1888
倒杨辉三角 题解:注意数组不能开太小,数组空间足够以后还要注意可能会必须用lon
渐鸿于陆
回复 0
|
赞 0
|
浏览 105
#include<stdio.h> #include<string.h> long long dp[200][200]; long long yanghui(int i,int j){ if(dp[i][j]!=0){ ...
P1011
日期 题解:
不能摆烂
回复 1
|
赞 0
|
浏览 358
为什么一直75%啊啊啊啊,那位大佬给我说说? #include<stdio.h> int days[]={0,30,31,30,31,31,30,31,30,31}; int sum_day(int m,int n){ int su...
P1551
判断二叉树是否对称 题解:
今夕何夕12211
回复 1
|
赞 0
|
浏览 226
求助 显示超时 准确率只有77% #include <stdio.h> #include <string.h> #include <math.h> int check(char a[],int x,int y) { ...
P1590
快速排序 题解:报错Runtime Error!哪位大神能给看看怎么修改
Habitude
回复 1
|
赞 0
|
浏览 127
#include<iostream> using namespace std; void Quick_Sort(int a[],int low,int high) //快排 { int i...
P5105
集合中的相同元素 题解:题目没有要求循环输入,我没用循环输入AC为0,用了循环输
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 134
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin >> n){ int sum = 0; int myset1[n]; int ...
P3666
单词翻转 题解:
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 187
#include<bits/stdc++.h> using namespace std; int main(){ string s; string word = ""; getline(cin, s); stack<stri...
P3502
密码的翻译 题解:
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 185
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin >> s){ int len = s.size(); ...
P3684
n个数的最小公倍数 题解:
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 227
#include<bits/stdc++.h> using namespace std; int gcd(int a, int b){ if(b == 0) return a; else return gcd(b, a % b); } in...
P1264
二叉树2 题解:
钟馨雨
回复 0
|
赞 0
|
浏览 136
#include <bits/stdc++.h> using namespace std; int main(){ int m,n; while(cin>>m>>n){ &...
P5133
取模运算 题解:
雨梦のkira
回复 0
|
赞 1
|
浏览 282
好嘛,快速幂都考,下一个是不是单调栈了。 #include <iostream> #include <string> using namespace std; int main() { string x; long long y = 0...
P1011
日期 题解:不一样的做法 AC
轩染
回复 0
|
赞 0
|
浏览 243
#include<stdio.h> #include<string.h> int main(){ char date[7][10]={"Thursday","Friday","...
P1072
C++
光明守护神
回复 0
|
赞 0
|
浏览 82
#include <iostream> #include <queue> #include <vector> using namespace std; int dir[2] = { -1,1 }; int least(int a, in...
P1006
字符串翻转 题解:C++
kar
回复 0
|
赞 0
|
浏览 302
int main(){ string str; cin>>str; reverse(str.begin(),str.end());  ...
P3502
密码的翻译 题解:
雨梦のkira
回复 0
|
赞 0
|
浏览 207
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin >> s){ //only a for for(auto &...
P2011
字符串替换 题解:
雨梦のkira
回复 0
|
赞 0
|
浏览 236
看不懂的话就用双重循环吧~,如果有多个tantan, #include <bits/stdc++.h> using namespace std; int main() { string s; string sp = "baibai"; bool is...
P5105
集合中的相同元素 题解:
雨梦のkira
回复 0
|
赞 0
|
浏览 294
用set去重吧,如果不要把个数排在前面直接用set而不是unordered_set了 #include<bits/stdc++.h> using namespace std; int main() { int n; while(cin >>...
P1929
简单排序 题解:
雨梦のkira
回复 0
|
赞 0
|
浏览 187
简单sort #include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; int ma...
P5128
喝饮料问题 题解:
雨梦のkira
回复 0
|
赞 0
|
浏览 357
第一眼还以为是背包问题的dp呢,没想到还是个挺简单的贪心。 我们可以想想,一元可以买每种饮料多少?我们是不是每次要拿钱少,量还大的饮料? #include <iostream> #include <vector> #include <strin...
P2018
三角形判定 题解:
Cookie‘s AE86
回复 0
|
赞 0
|
浏览 235
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; for(int i = 0; i < n; i++){ ...
我要提问
近期热门
1
N诺成就值出炉,帮你一眼识别大神
2
机试如何才能快速提高?
3
[置顶]计算机考研择校分析【25考研必读】
4
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
5
1377旋转矩阵
6
ip地址(C)
7
简单易懂
8
C++递归解法,有注释
9
1017 幂次方 快速幂模板
10
计算机考研复试笔记——操作系统篇