首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
GENARDING
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
35
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
144
阅读数
7216
set秒了
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> v(n); for(int i=0;i<...
P1898
2025年3月20日 18:40
回复 0
|
赞 3
|
浏览 164
把长的拼接起来,find即可
#include <bits/stdc++.h> using namespace std; int main() { string a; string b; while(cin>>a>>b){ if(a.length()&...
P1727
2025年3月20日 18:31
回复 0
|
赞 3
|
浏览 146
再定义一个优先级栈,出栈的时候判断
#include <bits/stdc++.h> using namespace std; // 大括号 > 中括号 > 小括号 > 尖括号 int priority(char c) { if (c == '{' || c == '}') ...
P1067
2025年3月20日 17:30
回复 0
|
赞 18
|
浏览 254
数字太少无需考虑时间复杂度,直接暴力
#include <bits/stdc++.h> using namespace std; int main() { int count=64; cout<<count<<endl; vector<int> d={1...
P5254
2025年3月19日 10:42
回复 0
|
赞 15
|
浏览 416
踩坑提示注意使用long long
#include <bits/stdc++.h> using namespace std; int main() { long long a[100][100]; int n; while(cin>>n){ for(int i=0;i...
P1888
2025年3月18日 13:26
回复 0
|
赞 4
|
浏览 328
朴实无华3重for
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> v(n); int count...
P2004
2025年3月17日 14:41
回复 0
|
赞 1
|
浏览 173
%2大法
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=0;i<n;i++){ int m; ...
P1869
2025年3月17日 14:07
回复 0
|
赞 2
|
浏览 172
先截取再运算,简单完美
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; string r1=s.substr(0,1); string r2...
P2000
2025年3月17日 13:00
回复 0
|
赞 0
|
浏览 107
ma+7
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int a,b,c; for(int i=0;i<n;i++){...
P1873
2025年3月17日 11:22
回复 0
|
赞 0
|
浏览 103
priority_queue<int,vector<int>,greater<int>> d;
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; priority_queue<int,vector<int>,...
P2012
2025年3月17日 11:12
回复 0
|
赞 1
|
浏览 128
使用set去重,轻轻松松
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<char> v(n); set<char>...
P1520
2025年3月16日 17:30
回复 0
|
赞 0
|
浏览 148
what can I say
#include <bits/stdc++.h> using namespace std; int main() { int a[3][3]={{1,2,3},{4,5,6},{7,8,9}}; int n; while(cin>...
P1543
2025年3月16日 17:04
回复 0
|
赞 1
|
浏览 118
这题不严格按照10位,投机取巧不行,直接find找分割
#include <bits/stdc++.h> using namespace std; bool isleap(int year) { // 判断是否是闰年 if ((year % 4 == 0 && year % 100 != ...
P1542
2025年3月16日 16:42
回复 0
|
赞 2
|
浏览 199
01背包问题,vector版
#include <bits/stdc++.h> using namespace std; int main() { int t,m; while(cin>>t>>m){ vector<pair<int,int&...
P1086
2025年3月16日 16:02
回复 0
|
赞 5
|
浏览 243
入栈索引,if判断,思路较简单
#include <bits/stdc++.h> using namespace std; void isValid(string s){ stack<char> st; vector<char> v(s.length(),' '); ...
P1296
2025年3月16日 15:36
回复 0
|
赞 4
|
浏览 222
注意斐波那契
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> v(n+1); v[0]=1; v[1...
P1479
2025年3月16日 15:00
回复 0
|
赞 3
|
浏览 150
01背包问题
#include <bits/stdc++.h> using namespace std; int main() { int s,n; cin>>s>>n; vector<int> wi(n); for(i...
P1123
2025年3月16日 14:37
回复 0
|
赞 1
|
浏览 159
vector,能快就快,把时间留给难题
#include<bits/stdc++.h> using namespace std; typedef struct student{ string name; int age; int score; }student; bool cmp(student...
P1404
2025年3月16日 14:08
回复 0
|
赞 3
|
浏览 154
大数可以py的还是得学啊,cpp写哭了
while True: try: a = int(input()) a = format(a, 'b')// to binary b = a[::-1]//reverse b = int(b, 2)//to ...
P1176
2025年3月14日 21:10
回复 0
|
赞 6
|
浏览 255
vector二维数组,使用swap翻转
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<vector<int>> a(n,vecto...
P1134
2025年3月14日 19:40
回复 0
|
赞 2
|
浏览 155
1
2
本科学校:云南财经大学
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!