主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
119
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
90
阅读数
19886
阶乘问题 题解:效率极高的解法
#include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { int ans = 1; int...
P1059
2025年2月10日 15:34
回复 0
|
赞 0
|
浏览 109
成绩再次排序 题解:别忘了还有个序号
#include <bits/stdc++.h> using namespace std; struct Score{ string name; int id; int chinese,math,english; Score(...
P1817
2025年2月10日 14:49
回复 0
|
赞 0
|
浏览 70
众数 - 清华 题解:每个数的位数都是一样的
#include <bits/stdc++.h> using namespace std; int main() { int n, m; while (cin >> n >> m) { std::vect...
P1534
2025年2月10日 14:37
回复 0
|
赞 0
|
浏览 89
数字模式的识别 题解:必须用unordered_map,否则超时
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ map<int,int>a; while(n--){...
P1057
2025年2月10日 14:09
回复 0
|
赞 0
|
浏览 58
距阵相乘 题解:数学推演
#include <bits/stdc++.h> using namespace std; int main() { std::vector<vector<int>> a(3,vector<int>(3)),b(3,vector&...
P1055
2025年2月10日 14:00
回复 0
|
赞 0
|
浏览 77
递推数列 题解:dp
#include <bits/stdc++.h> using namespace std; int main() { int a0,a1,p,q,k; while(cin>>a0>>a1>>p>>q>>...
P1171
2025年2月10日 11:06
回复 0
|
赞 1
|
浏览 56
球的半径和体积 题解:这题通过率低的离谱
#include <bits/stdc++.h> using namespace std; int main() { double a,b,c,x,y,z; while(cin>>a>>b>>c>>x&...
P1160
2025年2月9日 11:03
回复 0
|
赞 0
|
浏览 83
十进制转二进制 题解:long long 就能过,二进制用string存
#include <bits/stdc++.h> using namespace std; int main(){ long long x; while(cin>>x){ string ans; whi...
P1715
2025年2月8日 15:56
回复 0
|
赞 0
|
浏览 91
迭代求立方根 题解:说是迭代,方程都给了,不如直接dp带迭代
#include <bits/stdc++.h> using namespace std; int main(){ double x;int n; while(cin>>x>>n){ std::vector&...
P1379
2025年2月8日 15:47
回复 0
|
赞 0
|
浏览 100
计算两个矩阵的乘积 题解:顺手写了一个通用的
#include <bits/stdc++.h> using namespace std; // 矩阵乘法函数 vector<vector<int>> matrixMultiply(const vector<vector<int&g...
P1363
2025年2月8日 15:41
回复 0
|
赞 0
|
浏览 74
上交2018 Problem A 题解:可能你能想到第一个,但是不好想第二个
#include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { int ans = 0; for...
P1626
2025年2月8日 15:00
回复 0
|
赞 0
|
浏览 85
连续合数段 题解:存储起来,用加一判断
#include <bits/stdc++.h> using namespace std; bool isprime(int x) { if (x < 2) return false; // 1 不是质数 for (int i = 2; i *...
P1493
2025年2月8日 11:18
回复 0
|
赞 0
|
浏览 92
学生成绩管理 题解:简单模拟
#include <bits/stdc++.h> using namespace std; struct Student{ string id,clas,name; double score1,score2,score3,pre; Stud...
P1052
2025年2月8日 10:42
回复 0
|
赞 0
|
浏览 70
求30的倍数 题解:数学优化
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; // 统计每个数字的出现次数 int count[10]...
P1736
2025年2月8日 10:14
回复 1
|
赞 1
|
浏览 90
复旦-最大连续子序列 题解:dp
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ std::vector<int> a(n); for...
P1826
2025年2月8日 09:43
回复 0
|
赞 0
|
浏览 104
字符串区间翻转 题解:Kadana算法(卡丹算法)
#include <iostream> #include <string> #include <algorithm> using namespace std; int maxOnesAfterFlip(int n, const strin...
P1642
2025年2月7日 16:57
回复 0
|
赞 0
|
浏览 90
计算表达式 题解:stack求值
#include <bits/stdc++.h> using namespace std; // 从字符串中提取整数 int getInt(string s, int &index) { int ans = 0; while (index ...
P1281
2025年2月7日 14:06
回复 0
|
赞 2
|
浏览 108
求组合数 题解:错误就是出现结果为0
#include <bits/stdc++.h> using namespace std; int C(int n,int r){ if(r==0){ return -1; }else return C(n,r-1)*(n-r+1)...
P1058
2025年2月7日 12:02
回复 0
|
赞 3
|
浏览 92
约数的个数 题解:约数定理
#include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { if (n == 0) break; // 输入...
P1152
2025年2月7日 11:58
回复 0
|
赞 0
|
浏览 107
n的阶乘 题解:dp加速
#include <bits/stdc++.h> using namespace std; long long a[21]; void build(){ a[0]=a[1]=1; for(int i=2;i<=20;i++){ ...
P1167
2025年2月7日 11:18
回复 0
|
赞 0
|
浏览 84
1
2
3
4
5
6
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!