首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
Y969432769845
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
24
发帖
0
笔记
0
Ta的粉丝
27
关注数
0
粉丝数
27
获赞数
120
阅读数
6325
Weights II 题解:暴搜
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e4 + 5; int t,n,q; int w[N],p[N],x[N]; void dfs(in...
P1961
2025年3月22日 21:32
回复 0
|
赞 2
|
浏览 127
子序列-ECNU 题解:无需开数组优化10000kb空间
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int MOD = 1e9 + 7; ll n,s,a,b,l=1,r=1,la,ra,sum,minn=LLONG_MA...
P1960
2025年3月20日 00:40
回复 0
|
赞 0
|
浏览 165
最长美丽子串 题解:杀鸡何须dp,滑动窗口秒了
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3 + 5; string s; int flag[26]; int main() { &n...
P1962
2025年3月19日 20:28
回复 0
|
赞 1
|
浏览 178
骑车路线 题解:杀鸡何须dp,差分秒了
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3 + 5; int n; int main() { whi...
P1737
2025年3月19日 19:39
回复 0
|
赞 2
|
浏览 176
排列删除 题解:
首先i为1可以删,也就是这个序列可以一直删第一个,那么只要x<y,可以无脑从1开始删,x必然比y先删掉,只需考虑y<x情况 或者p[i-1]>p[i]可以删,也就是左边邻居比自己大,自己就可以删。因此y<x时最简单思路就是可以考虑求区间[y,x)最大值, 这...
P5276
2025年3月19日 17:16
回复 0
|
赞 7
|
浏览 233
基建高手 题解:二分时间
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e5 + 5; int n, k; int a[N]; bool check(int mid){...
P5274
2025年3月19日 15:20
回复 0
|
赞 3
|
浏览 225
整数分解 题解:又写了一个记忆化搜索
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int N=1005; int n; int dp[N][N]; vector<int> prime; ...
P1967
2025年3月18日 17:52
回复 0
|
赞 7
|
浏览 455
钥匙 题解:简单模拟加前缀和
#include <bits/stdc++.h> using namespace std; int main() { int n, k, door=1, j=1; cin >> n ...
P1879
2025年3月16日 17:18
回复 0
|
赞 2
|
浏览 196
矩形个数 题解:前缀和加滑动窗口,O(r²c)的时间复杂度
#include <bits/stdc++.h> using namespace std; int main() { int r, c, n, k, x, y, sum = 0; cin >> r &g...
P1959
2025年3月16日 00:01
回复 0
|
赞 5
|
浏览 256
整数分解 题解:来学习
#include <iostream> #include <vector> using namespace std; int main() { int n; cin>>n; ...
P1967
2025年3月15日 19:29
回复 0
|
赞 4
|
浏览 217
最小字符串 题解:正确率66%的想想AAA应该生成什么
#include <bits/stdc++.h> using namespace std; int main(){ string s1,s2=""; cin>>s...
P1965
2025年3月15日 19:00
回复 0
|
赞 6
|
浏览 261
最长美丽子串 题解:动态规划,下一个如果没重复长度加一否则重置
#include <bits/stdc++.h> using namespace std; int n; int main() { string s; cin>>...
P1962
2025年3月15日 13:56
回复 0
|
赞 2
|
浏览 251
安全驾驶 题解:不难,后一个车达到时间最快也只能和前一个车相同
#include<bits/stdc++.h> using namespace std; struct node { int k,v; double t; } a[1005]; ...
P1881
2025年3月14日 21:58
回复 0
|
赞 1
|
浏览 215
表面积 题解:只需要看我这篇就够了
#include<bits/stdc++.h> using namespace std; struct node { long long r, h, s; } a[1005]; //结构体,储存半径,高度,侧面积 ...
P1882
2025年3月14日 20:40
回复 0
|
赞 6
|
浏览 287
数字排序 题解:c++最简洁解法
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; &nbs...
P1966
2025年3月14日 14:24
回复 0
|
赞 7
|
浏览 335
位运算 题解:c++最简洁解法
#include <bits/stdc++.h> using namespace std; int x,a,b; int main() { cin>>x>>a>>b; string...
P1906
2025年3月14日 01:10
回复 0
|
赞 1
|
浏览 161
整数排序 题解:c++超简洁排序
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); istrin...
P1905
2025年3月12日 15:01
回复 0
|
赞 5
|
浏览 233
差分计数 题解:n诺测试数据太小了,正常暴力会超时,应该用字典。
n是10^6数量级,两层for循环暴力数量级10^12,但是计算机1s只能处理10^8。。。。。 这题实际考查找,应该用字典解答 #include <bits/stdc++.h> using namespace std; int main()...
P1907
2025年3月12日 14:00
回复 0
|
赞 8
|
浏览 277
求30的倍数 题解:挑战最短代码ac
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; sort...
P1736
2025年3月11日 16:49
回复 0
|
赞 12
|
浏览 296
子序列-ECNU 题解:其他题解用双for循环是错的
有其他题解用双for循环暴力搜索,确实在n诺能ac,但是只是n诺数据太小了,你可以试试第一行两个数都用10e7量级的,我跑代码用时40s。。。。 这里给一个计算运行时间(精确到纳秒级)的代码 #include <stdio.h> #include <window...
P1960
2025年3月10日 23:44
回复 0
|
赞 7
|
浏览 285
1
2
本科学校:东华大学
目标学校:华东师范大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!