首页
DreamJudge
院校信息
考研初试
机试真题
兑换中心
登录
注册
上岸
Ang
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
39
发帖
1
笔记
0
Ta的粉丝
512
关注数
0
粉丝数
512
获赞数
91
阅读数
387744
又是枚举。。。
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n,m; cin...
P1558
2020年3月12日 22:25
回复 0
|
赞 0
|
浏览 7.1k
题目描述原本有一些错误,联系群主更正了
#include<bits/stdc++.h> using namespace std; string t; string CUT(string s,int l,int r){ t=s.substr(l,r-l+1); s.erase(l,...
P1559
2020年3月12日 23:52
回复 0
|
赞 0
|
浏览 6.5k
签到
#include<bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; while(T--){ long long x; ...
P1487
2020年3月13日 20:28
回复 0
|
赞 1
|
浏览 8.9k
用了素数筛的方法,复杂度太高了,勉强通过
#include using namespace std; int const maxn=340000; int const maxp=1000; bool isPrime[maxp]; vector prime; void Initial(){ fi...
P1489
2020年3月13日 23:30
回复 0
|
赞 1
|
浏览 12.1k
MIN的01背包
#include<stdio.h> #define INF 1000 int stamp[1000]; int dp[1000]; // 返回最少数量,num表示邮票的个数,deno表示要凑成的面额 int Min_Stamp(int num,int deno){ ...
P1164
2020年3月14日 13:21
回复 0
|
赞 0
|
浏览 8.1k
注意cnt=5之后要清零
#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; while(N--){ string str; ...
P1557
2020年3月14日 14:03
回复 0
|
赞 4
|
浏览 9.2k
手动翻转大法
#include<cstdio> #include<iostream> using namespace std; int arr[5][5]; int main(){ while(cin>>arr[0][0]){ ...
P1376
2020年3月14日 14:08
回复 0
|
赞 7
|
浏览 9.4k
这么一题压轴是没有想到
#include<bits/stdc++.h> using namespace std; char a[101][101]; int main(){ int pos=0; string str; int s; while(c...
P1656
2020年3月14日 14:58
回复 2
|
赞 9
|
浏览 10.3k
直接套用01背包的公式就好了
#include<bits/stdc++.h> using namespace std; int const maxn = 10000; int dp[maxn]; int w[maxn]; int main(){ int s,n; while...
P1035
2020年3月14日 19:07
回复 0
|
赞 1
|
浏览 11.5k
签到题
#include<bits/stdc++.h> using namespace std; int const maxn=1000001; int const p=1e9+7; int dp[maxn]; int main(){ dp[0]=0; d...
P1685
2020年3月14日 19:20
回复 0
|
赞 3
|
浏览 10.3k
111
#include<bits/stdc++.h> using namespace std; int main() { int s,n; while(cin>>s>>n) { int a[1001][101]...
P1567
2020年3月14日 19:57
回复 0
|
赞 1
|
浏览 9.1k
签到
#include<bits/stdc++.h> using namespace std; int main(){ int N; int a[10001]; while(cin>>N){ if(N==0) break; for(int ...
P1181
2020年3月15日 16:49
回复 0
|
赞 0
|
浏览 8.0k
签到
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; vector<int> even; vector<int...
P1010
2020年3月17日 13:25
回复 0
|
赞 0
|
浏览 8.6k
签到
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int maxl=0; int index; for(int i...
P1020
2020年3月17日 13:34
回复 0
|
赞 1
|
浏览 9.0k
1111
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <cstdlib> #include <s...
P1059
2020年3月17日 14:12
回复 0
|
赞 1
|
浏览 9.1k
完全背包例题
#include<bits/stdc++.h> using namespace std; int dp[2001]; int w[101]; int v[101]; int main(){ int n,s; while(cin>&...
P1112
2020年3月17日 14:40
回复 0
|
赞 2
|
浏览 9.4k
签到
#include<bits/stdc++.h> using namespace std; int dp[2001]; int w[10001]; int v[10001]; int main(){ int n,s; while(cin&...
P1569
2020年3月17日 14:42
回复 0
|
赞 2
|
浏览 10.2k
set
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; set<string> s; while(n--){ ...
P1603
2020年3月20日 10:14
回复 0
|
赞 8
|
浏览 8.4k
签到
#include<bits/stdc++.h> using namespace std; bool Find(char c , string s){ for(int i=0;i<s.size();i++){ if(s[i]==c){ ...
P1206
2020年3月20日 10:37
回复 0
|
赞 5
|
浏览 10.8k
1
2
本科学校:中国计量大学
目标学校:北京邮电大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!