首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
166
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
855
阅读数
61801
计算两个矩阵的乘积 题解:顺手写了一个通用的
#include <bits/stdc++.h> using namespace std; // 矩阵乘法函数 vector<vector<int>> matrixMultiply(const vector<vector<int&g...
P1363
2025年2月8日 15:41
回复 0
|
赞 2
|
浏览 284
上交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
|
赞 5
|
浏览 249
连续合数段 题解:存储起来,用加一判断
#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
|
赞 5
|
浏览 330
学生成绩管理 题解:简单模拟
#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
|
浏览 336
求30的倍数 题解:数学优化
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; // 统计每个数字的出现次数 int count[10]...
P1736
2025年2月8日 10:14
回复 1
|
赞 6
|
浏览 455
复旦-最大连续子序列 题解: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
|
赞 7
|
浏览 332
字符串区间翻转 题解:Kadana算法(卡丹算法)
#include <iostream> #include <string> #include <algorithm> using namespace std; int maxOnesAfterFlip(int n, const strin...
P1642
2025年2月7日 16:57
回复 0
|
赞 8
|
浏览 418
计算表达式 题解: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
|
赞 9
|
浏览 417
求组合数 题解:错误就是出现结果为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
|
赞 6
|
浏览 266
约数的个数 题解:约数定理
#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
|
赞 3
|
浏览 371
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
|
赞 1
|
浏览 310
大整数乘法 题解:高精度乘高精度 转 高精度乘低精度
#include <bits/stdc++.h> using namespace std; const int LEN = 1000; int a[LEN],b[LEN],c[LEN]; void clear(int a[]){ for(int i...
P1475
2025年2月7日 11:15
回复 0
|
赞 4
|
浏览 402
Coincidence 题解:最长子序列
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>>b){ int n=a.size(),m...
P1293
2025年2月6日 11:25
回复 0
|
赞 6
|
浏览 354
生化武器 题解:DFS深搜思路,好写
#include <bits/stdc++.h> using namespace std; void dfs(int x, int y, int step, vector<vector<char>>& a, vector<vecto...
P1126
2025年2月6日 10:33
回复 0
|
赞 7
|
浏览 398
遍历链表 题解:按要求解答
#include <bits/stdc++.h> using namespace std; struct node { int val; struct node* next; node(int val) : val(val), next(n...
P1405
2025年2月5日 17:17
回复 0
|
赞 9
|
浏览 406
拦截导弹 题解:最大增长子序列取同且仅计算个数问题
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ std::vector<int> a(n),b(...
P1256
2025年2月5日 16:50
回复 0
|
赞 7
|
浏览 412
最大上升子序列和 题解:最长子序列和求解
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ std::vector<int> a(n),b(...
P1257
2025年2月5日 16:38
回复 0
|
赞 6
|
浏览 434
二叉树叶结点的个数 题解:先序生成规则解释
#include <bits/stdc++.h> using namespace std; struct tnode{ char val; struct tnode* left,* right; tnode(char val):val(va...
P4777
2025年2月5日 15:36
回复 0
|
赞 6
|
浏览 350
动态查找的问题 题解:利用set
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ set<int>a; while(n--){ ...
P5127
2025年2月5日 15:20
回复 0
|
赞 2
|
浏览 231
分离字符串 题解:插入思路
#include <bits/stdc++.h> using namespace std; int main(){ string s; while(getline(cin,s)){ string a,b,c; for(auto x:s){...
P3503
2025年2月5日 15:12
回复 0
|
赞 7
|
浏览 306
1
...
4
5
6
7
8
9
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!