主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
搜索
全 部
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P1196
单词替换 题解:自用笔记(C语言)
zx142407789
发表于 1天前
回复 0
|
赞 0
|
浏览 31
#include<stdio.h> #include<string.h> int main() { char str[20][100];//采用二维数组,以一个字符串为一个数据元素,看成字符串数组 ...
P1163
求最大最小数 题解:
Amberqwe
发表于 1天前
在1天前回复
回复 1
|
赞 0
|
浏览 28
百分之80,怎么解决啊 #include <stdio.h> int main() { int a, b[1000000]; while (scanf("%d",...
P1025
链表合并 题解:
熹微
发表于 1天前
回复 0
|
赞 0
|
浏览 59
每日一题 c语言 #include<stdio.h> typedef struct Node{ int num; struct Node *Next; }node; void Meg(node ...
P1179
密码翻译 题解:
Amberqwe
发表于 1天前
在1天前回复
回复 1
|
赞 0
|
浏览 34
其他软件正确,这里是错误 #include <stdio.h> #include <string.h> int main() { char s[80]; while(gets(s)...
P1329
统计同成绩学生人数 题解:
Amberqwe
发表于 1天前
在1天前回复
回复 1
|
赞 0
|
浏览 43
为啥只有75% #include <stdio.h> int main() { int n, a[1000], grade; int cnt = 0;  ...
P1015
单链表 题解:
熹微
发表于 1天前
回复 0
|
赞 0
|
浏览 60
C语言 边输入一个数据边进行链表插入 了解一下 #include<stdio.h> typedef struct Node{ int num; struct Node *Next; }node; i...
P1007
整除 题解:C++
kar
发表于 1天前
回复 0
|
赞 0
|
浏览 28
#include <iostream> using namespace std; int main() { int sum = 0; for (int i = 100; i <=1000; i...
P1020
最长连续因子 题解:求大神解答一下,通过率只有80%,不知道哪里出问题了
18237466773
发表于 2天前
在1天前回复
回复 2
|
赞 0
|
浏览 96
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){  ...
P5129
简单的背包问题 题解:
望雨天
发表于 1天前
回复 0
|
赞 0
|
浏览 56
其实就是最基础的0,1背包问题的变体 这里只需要在基础的0,1背包问题中,将每个物体的重量和体积设置为相同 那么,能够装入的最大重量一定是小于等于体积的 如果能够装入的最大重量与背包体积相等,那么说明有解,否则无解 #include <...
P1360
字符串内排序 题解:C
lingdongyang
发表于 23天前
在1天前回复
回复 4
|
赞 0
|
浏览 197
#include<stdio.h> #include<string.h> #include<stdlib.h> int st_in(const void* elem1, const void* elem2) { return strcmp(...
P1281
计算表达式 题解:
damowanghwj
发表于 1天前
回复 0
|
赞 0
|
浏览 31
#include<bits/stdc++.h> using namespace std; string str; int GetPriority(char ch){ if(ch == '#') return 0; else if(ch == '$') ...
P1168
特殊乘法 题解:
Amberqwe
发表于 1天前
回复 0
|
赞 0
|
浏览 12
百分之40 #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int a,...
P1172
最大序列和 题解:
huanghu
发表于 2天前
回复 0
|
赞 0
|
浏览 41
#include<iostream> using namespace std; long long dp[1000000]; long long list[1000000]; int main(){ int n; while(cin>>n){ ...
P1448
充分利用容器特性
yanmy
发表于 2天前
回复 0
|
赞 0
|
浏览 34
#include <iostream> #include <map> #include <vector> #include <set> using namespace std; int main() { int m; ...
P1888
倒杨辉三角 题解:注意数组不能开太小,数组空间足够以后还要注意可能会必须用lon
渐鸿于陆
VIP
发表于 2天前
回复 0
|
赞 0
|
浏览 21
#include<stdio.h> #include<string.h> long long dp[200][200]; long long yanghui(int i,int j){ if(dp[i][j]!=0){ ...
P1011
日期 题解:
不能摆烂
发表于 6天前
在2天前回复
回复 1
|
赞 0
|
浏览 153
为什么一直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
发表于 2天前
在2天前回复
回复 1
|
赞 0
|
浏览 82
求助 显示超时 准确率只有77% #include <stdio.h> #include <string.h> #include <math.h> int check(char a[],int x,int y) { ...
P1590
快速排序 题解:报错Runtime Error!哪位大神能给看看怎么修改
Habitude
发表于 2天前
在2天前回复
回复 1
|
赞 0
|
浏览 44
#include<iostream> using namespace std; void Quick_Sort(int a[],int low,int high) //快排 { int i...
P5105
集合中的相同元素 题解:题目没有要求循环输入,我没用循环输入AC为0,用了循环输
Cookie‘s AE86
发表于 2天前
回复 0
|
赞 0
|
浏览 48
#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
发表于 2天前
回复 0
|
赞 0
|
浏览 36
#include<bits/stdc++.h> using namespace std; int main(){ string s; string word = ""; getline(cin, s); stack<stri...
P3502
密码的翻译 题解:
Cookie‘s AE86
发表于 2天前
回复 0
|
赞 0
|
浏览 44
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin >> s){ int len = s.size(); ...
P3684
n个数的最小公倍数 题解:
Cookie‘s AE86
发表于 2天前
回复 0
|
赞 0
|
浏览 42
#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 题解:
钟馨雨
发表于 2天前
回复 0
|
赞 0
|
浏览 44
#include <bits/stdc++.h> using namespace std; int main(){ int m,n; while(cin>>m>>n){ &...
P5133
取模运算 题解:
雨梦のkira
发表于 2天前
回复 0
|
赞 1
|
浏览 155
好嘛,快速幂都考,下一个是不是单调栈了。 #include <iostream> #include <string> using namespace std; int main() { string x; long long y = 0...
P1011
日期 题解:不一样的做法 AC
轩染
发表于 2天前
回复 0
|
赞 0
|
浏览 77
#include<stdio.h> #include<string.h> int main(){ char date[7][10]={"Thursday","Friday","...
P1072
C++
光明守护神
发表于 2天前
回复 0
|
赞 0
|
浏览 24
#include <iostream> #include <queue> #include <vector> using namespace std; int dir[2] = { -1,1 }; int least(int a, in...
P1006
字符串翻转 题解:C++
kar
发表于 2天前
回复 0
|
赞 0
|
浏览 124
int main(){ string str; cin>>str; reverse(str.begin(),str.end());  ...
P3502
密码的翻译 题解:
雨梦のkira
发表于 2天前
回复 0
|
赞 0
|
浏览 62
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin >> s){ //only a for for(auto &...
P2011
字符串替换 题解:
雨梦のkira
发表于 2天前
回复 0
|
赞 0
|
浏览 47
看不懂的话就用双重循环吧~,如果有多个tantan, #include <bits/stdc++.h> using namespace std; int main() { string s; string sp = "baibai"; bool is...
P5105
集合中的相同元素 题解:
雨梦のkira
发表于 2天前
回复 0
|
赞 0
|
浏览 77
用set去重吧,如果不要把个数排在前面直接用set而不是unordered_set了 #include<bits/stdc++.h> using namespace std; int main() { int n; while(cin >>...
1
2
3
4
...
122
我要提问
近期热门
1
N诺成就值出炉,帮你一眼识别大神
2
机试如何才能快速提高?
3
[置顶]2023计算机考研择校分析【23考研必读】
4
1377旋转矩阵
5
ip地址(C)
6
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
7
简单易懂
8
C++递归解法,有注释
9
1017 幂次方 快速幂模板
10
计算机考研复试笔记——操作系统篇