首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P5204
字符串的字典排序 题解:
Verse Q
回复 0
|
赞 0
|
浏览 19
#include <iostream> #include <string> #include <algorithm> #include <vector> using namespace std; int main() { &n...
P1011
日期 题解:
iyishu
回复 0
|
赞 0
|
浏览 12
服了还考英语这题
P2020
字符串转化 题解:
故里526
回复 0
|
赞 1
|
浏览 52
#include<stdio.h> #include<string.h> int main(){ char a[100]; int i; int lenth; while(scanf("%s",a)!=EOF){ i...
P1551
判断二叉树是否对称 题解:
XCR553
回复 0
|
赞 1
|
浏览 63
//看了好几个都没有我的解法简单 #include <bits/stdc++.h> using namespace std; int main(){ string s; &nb...
P5104
约瑟夫问题的实现 题解:C语言实现
Assassin123
回复 0
|
赞 0
|
浏览 91
#include "stdio.h" #include "stdlib.h" int main() { int n, k; scanf("%d %d", &n, &k); int flag1 = 0;//用于数k int ...
P1035
简单背包问题 题解:
机试过过过·
回复 1
|
赞 3
|
浏览 146
#include<bits/stdc++.h> // 包含标准库,方便使用各种功能 using namespace std; int main(){ int s, n; // 定义变量s表示背包的容量,n表示物品的数量 while(cin >&...
P1125
求三角形的面积 题解:为啥过不去
李志豪
回复 1
|
赞 1
|
浏览 112
#include<stdio.h> #include<math.h> int main(){ float x1,y1,x2,y2,x3,y3; float s;  ...
P5238
AB博弈 题解:
知止而后动
回复 0
|
赞 1
|
浏览 62
这个问题类似于“拿石子游戏”,其中玩家每次可以拿1或2个石子,最后一个拿石子的人获胜。这种情况下,如果N是3的倍数,后手可以必胜;否则,先手可以必胜。
P5244
数组划分 题解:
fyy466
回复 0
|
赞 1
|
浏览 101
#include <stdio.h> #include <stdlib.h> int max1(int i,int j,int* a ){ int max=0; for(int k=i;k<j;k++){ if(a[k]...
P5244
数组划分 题解:
fyy466
回复 0
|
赞 0
|
浏览 95
#include <stdio.h> #include <stdlib.h> int max1(int i,int j,int* a ){ int max=0; for(int k=i;k<j;k++){ if(a[k]...
P1020
最长连续因子 题解:使用一个长度量时刻记录,同时不停与最长变量对比
AiLanKeSi
回复 1
|
赞 18
|
浏览 329
#include <stdio.h> int main() { int length = 0; int longest = 0; int position...
P1011
日期 题解:纯c
李志豪
回复 0
|
赞 3
|
浏览 134
#include<stdio.h> void weeka(int m,int d){ int m_d[]={31,29,31,30,31,30,31,31,30,31,30,31}; int i; ...
P1011
日期 题解:纯c
李志豪
回复 0
|
赞 1
|
浏览 70
#include<stdio.h> void weeka(int m,int d){ int m_d[]={31,29,31,30,31,30,31,31,30,31,30,31}; int i; ...
P1097
负二进制 题解:
Jayho
回复 0
|
赞 1
|
浏览 71
暴力枚举 把一个变量从1开始递增,转化为二进制进行基数为-2的运算,所得结果与输入数比较。但是比较耗时。。。 #include<bits/stdc++.h> using namespace std; string judge(int n) { &nbs...
P1394
统计单词 题解:
山崎友希
回复 0
|
赞 5
|
浏览 155
#include<stdio.h> #include<string.h> #define MAXSIZE 100 int main(){ char string[MAXSIZE]; ...
P1580
一元三次方程求解 题解:
山崎友希
回复 0
|
赞 0
|
浏览 46
#include<stdio.h> double a,b,c,d; double f(double x){ double result=a*x*x*x+b*x*x+c*x+d; return...
P1891
元数据 题解:
山崎友希
回复 0
|
赞 0
|
浏览 73
#include<stdio.h> #include<string.h> #include<math.h> int main(){//那我问你,10的九次方是多少? //1000000000 确实 这就是10的9次方 //10000...
P2015
涂颜色 题解:
DASH106
回复 0
|
赞 2
|
浏览 125
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll string_mod(const string&s,ll mod){ ll res = ...
P1454
反序数 题解:
火火火。。。
回复 0
|
赞 0
|
浏览 89
#include<iostream> #include<stdio.h> using namespace std; int main() { for (int i = 1000; i <= 9999; i++) ...
P1454
反序数 题解:
火火火。。。
回复 0
|
赞 1
|
浏览 96
#include<iostream> #include<stdio.h> using namespace std; int main() { for (int i = 1000; i <= 9999; i++) ...
P1556
三元组 题解:
山崎友希
回复 0
|
赞 0
|
浏览 74
#include<stdio.h> int main(){ int N; scanf("%d",&N); int j=1; &nb...
P1095
Y/N 题解:
曦熙
回复 0
|
赞 2
|
浏览 167
#include<bits/stdc++.h> using namespace std; int main(){ int A,B,C,D; int M=0,j; cin>>A>&...
P1888
倒杨辉三角 题解:
20210512061
回复 0
|
赞 1
|
浏览 83
#include<stdio.h> #include<stdlib.h> int main(){ int a; while(scanf("%d",&a)!...
P1767
元素位置 题解:
山崎友希
回复 0
|
赞 0
|
浏览 122
#include<stdio.h> int main(){ int n; scanf("%d",&n); int a[n]; &n...
P1689
元素交换 题解:
山崎友希
回复 0
|
赞 0
|
浏览 93
#include<stdio.h> int main(){//给定一个长度为 [公式] 数组,将其中第偶数位置的元素与前一个元素交换。 int n; scanf("%d",&...
P1883
达到回文数 题解:
山崎友希
回复 0
|
赞 0
|
浏览 75
#include<stdio.h> #include<string.h> #include<math.h> int Reverse(int x){//Reverse函数实现把传进来的参数x翻转的效果! &nb...
P1411
二叉排序树2 题解:
samxz
回复 0
|
赞 0
|
浏览 86
#include<stdlib.h> #include<stdio.h> typedef struct node{ int data; struct node* lchild; struct node* rchild; }node; void...
P1208
2048的游戏 题解:优先队列so easy
西电机试专家
回复 0
|
赞 4
|
浏览 142
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n;  ...
P5291
ASCII码排序 题解:神人题
西电机试专家
回复 0
|
赞 0
|
浏览 92
#include<bits/stdc++.h> using namespace std; bool cmp(char a,char b){ return a<b; } int main(){ &nbs...
P1888
倒杨辉三角 题解:long long long long
西电机试专家
回复 0
|
赞 0
|
浏览 119
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n) { &nbs...
P1045
平方和与倒数和 题解:
曦熙
回复 0
|
赞 2
|
浏览 105
#include<bits/stdc++.h> using namespace std; int main(){ int a,b; double c,f=0.0,q; c...
P1004
句子正序 题解:用vector将每个单词存储再进行输出
18919717626
回复 0
|
赞 0
|
浏览 64
#include <iostream> #include <vector> #include <sstream> using namespace std; int main() { string sentence; ...
P1855
最大公共子串 题解:
18919717626
回复 0
|
赞 0
|
浏览 84
#include <iostream> #include <cstring> #include <bits/stdc++.h> using namespace std; int main() { string s1,...
P1292
字母统计 题解:
16696033405
回复 0
|
赞 0
|
浏览 115
#include <stdio.h> #include <stdlib.h> #include<string.h> #define MAX 1000 int main() { char s[MAX];  ...
P1312
畅通工程 题解:暴力
zxjrheaven
回复 0
|
赞 1
|
浏览 120
#include <bits/stdc++.h> using namespace std; struct node { int st; int ed; ...
P1566
确定比赛名次 题解:
路西法
回复 0
|
赞 1
|
浏览 83
#include<stdio.h> #include<vector> #include<queue> using namespace std; int main(){ int n,m; &nb...
P1544
合并果子 题解:暴力
zxjrheaven
回复 0
|
赞 0
|
浏览 164
#include <iostream> #include <queue> #include <vector> using namespace std; int main() { int n; &n...
P1013
判断素数 题解:
16696033405
回复 0
|
赞 4
|
浏览 125
#include<stdio.h> #include<string.h> #include<ctype.h> #include<math.h> #define MAX 1000 int main(){ &nb...
P1185
全排列 题解:借用next_permutation函数
路西法
回复 0
|
赞 2
|
浏览 181
提前打印一个本身 #include<stdio.h> #include<algorithm> #include<string.h> using namespace std; int main(){ c...
P1019
字母频率 题解:非常棒的题解
西电机试专家
回复 0
|
赞 1
|
浏览 103
#include<bits/stdc++.h> using namespace std; int main(){ map<char,int> M; string s; &n...
P1329
统计同成绩学生人数 map
阿灿
回复 0
|
赞 1
|
浏览 69
#include<bits/stdc++.h> using namespace std; int main(){ int n; int x; int y; while(cin>>n&&n!=0){ map<int,in...
P1411
二叉排序树2 题解:
阿灿
回复 0
|
赞 1
|
浏览 79
#include<bits/stdc++.h> using namespace std; typedef struct node{ int c; struct node *r,*l; } *Tree; void CreateTree(Tree &T,...
P1034
水仙花数 题解:优美
西电机试专家
回复 0
|
赞 7
|
浏览 214
#include <bits/stdc++.h> using namespace std; int sxh(int x){ int ge=x%10; int shi=x/10%10; ...
P1020
最长连续因子 题解:排序大法
西电机试专家
回复 0
|
赞 4
|
浏览 201
#include <bits/stdc++.h> using namespace std; struct node{ int shi; int chang; }b[10001]; b...
P1109
二叉树的建立和遍历 题解:
阿灿
回复 0
|
赞 9
|
浏览 211
#include<bits/stdc++.h> using namespace std; typedef struct Node{ char c; struct Node *lchild,*rchild; }*Tree; Tree create(Tree &am...
P1413
N阶楼梯上楼问题(runtime error)关于数组的答疑疑问:
霞鸣
回复 1
|
赞 3
|
浏览 158
#include <iostream> using namespace std; int main() { long dp[91]; int n; &nb...
P1102
素数判定 题解:
阿灿
回复 0
|
赞 2
|
浏览 73
#include<bits/stdc++.h> using namespace std; int shu(int x){ for(int i=2;i<=sqrt(x);i++){ if(x%i==0)return false; } return tr...
P1024
二元组整数 题解:vector pair
lxy0928
回复 0
|
赞 1
|
浏览 90
#include <bits/stdc++.h> using namespace std; bool cmp(pair<int,int>a,pair<int,int>b){ if(a.first!=b.first)...
P1479
01字符串 题解:
阿灿
回复 0
|
赞 2
|
浏览 142
#include<bits/stdc++.h> using namespace std; int main(){ long long int fn[10001]; fn[1]=1; fn[2]=2; fn[3]=3; for(int i=4;i<=...
P1013
判断素数 题解:
阿灿
回复 0
|
赞 0
|
浏览 105
#include<bits/stdc++.h> using namespace std; bool shu(int x){ if(x<2) return false; for(int i=2;i<=sqrt(x);i++){ if(x%i==0) ...
1
2
我要提问
全站热榜
1
无法正确通过题目都是哪些原因造成的?
2
机试如何才能快速提高?
3
题目难点:数学公式不断化解
4
[置顶]计算机考研择校分析【25考研必读】
5
逻辑很简单,但是实现却要小心多多
6
A+B问题 题解:C
7
1017 幂次方 快速幂模板
8
日期 题解:
9
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
10
负二进制 题解: