C小白训练第五天,有什么特别的学习内容吗?

摘要:C++小白训练第五天 以下为牛客挑战 今日收获 存放相同的东西的序号时候可以用vector vector<vector<int>&
C++小白训练第五天 以下为牛客挑战 今日收获 存放相同的东西的序号时候可以用vector vector<vector<int>>f(N); 这样就不会像二维数组一样被动 区间递归 变化不大的 f[i]=f[i-1]+{-1,1,0} 牛客周赛 Round 123 (34条未读私信) 牛客竞赛_ACM/NOI/CSP/CCPC/ICPC算法编程高难度练习赛_牛客竞赛OJ 小红玩牌 A-小红玩牌_牛客周赛 Round 123 解题代码 #include<bits/stdc++.h> #define int long long #define lll __uint128_t #define PII pair<int ,int> #define endl '\n' using namespace std; #define yn(ans) printf("%s\n", (ans)?"Yes":"No");//快速打印 #define YN(ans) printf("%s\n", (ans)?"YES":"NO"); #define REP(i, e) for (int i = 0; i < (e); ++i) #define REP1(i, s, e) for (int i = (s); i <=(e); ++i) #define TESTS int t; cin >> t; while (t--) #define TEST const int N=2e5+10,M=1e3+10,mod=1e9+7; int a[N],b[N],c[N],pre[N]; signed main(){ std::ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n1,n2; string s1,s2; cin>>n1>>s1; cin>>n2>>s2; if(n1>n2){ cout<<"Yes"<<endl; }else if(n1==n2){ if(s1<s2){ cout<<"Yes"<<endl; }else{ cout<<"No"<<endl; } }else{ cout<<"No"<<endl; } return 0; } 小红作弊 B-小红作弊_牛客周赛 Round 123 很简单只需要我们直接看看哪里多了的,多了的就是 解题代码 #include<bits/stdc++.h> #define int long long #define lll __uint128_t #define PII pair<int ,int> #define endl '\n' using namespace std; #define yn(ans) printf("%s\n", (ans)?"Yes":"No");//快速打印 #define YN(ans) printf("%s\n", (ans)?"YES":"NO"); #define REP(i, e) for (int i = 0; i < (e); ++i) #define REP1(i, s, e) for (int i = (s); i <=(e); ++i) #define TESTS int t; cin >> t; while (t--) #define TEST const int N=2e5+10,M=1e3+10,mod=1e9+7; int a[N],b[N],c[N],pre[N]; signed main(){ std::ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); vector<array<int,2>>ans(14); int x1=0,x2; for(int i=1;i<=13;i++){ cin>>ans[i][0]; } for(int i=1;i<=13;i++){ cin>>a
阅读全文