B3680 [语言月赛202211] BAN-PICK 题目描述 在第五人格职业联赛的每一场对局中,需要进行 Ban-Pick 流程。Ban 即角色禁用,Pick 即角色选用。 如试题 Winner 所述,游戏分为 求生者($\texttt{Survivor}$) 与 监管者($\texttt {Hunter}$) 两个阵营。求生者阵营 共有 $n$ 名角色,监管者阵营 共有 $m$ 名角色。 ...

更新于2026年11月27日 · 共1362字

A、小红的好数 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; bool is(int x) { string s; s=to_string(x); if(s.size()!=2) return false; if(s[0]==s[1]) return true; else return false; } #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin>>n; if(is(n)) { cout<<"Yes"; } else { cout<<"No"; } return 0; } B、构造C的歪 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; int u[1]; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a,b; cin>>a>>b; u[0]=a,u[1]=b; sort(u,u+1); cout<<2*u[1]-u[0]; return 0; } C、小红喜欢1 #include <bits/stdc++.h> using namespace std; const int N = 501; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int a[5]; int ans=0; for(int i=1;i<=5;i++) { int x=0; cin>>x; if(x==1) { cout<<i; return 0; } } return 0; } D、小红的删字符 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin>>s; cout<<s[0]<<s[2]; return 0; } E、好数组 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; int a[200010],b[200010]; int n; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin>>n; for(int i=1;i<=n;i++) { cin>>a[i]; if(a[i]==0) { cout<<"NO";return 0; } } cout<<"YES"; return 0; } F、Fool Problem #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; #define int long long signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin>>s; char c=s.back(); int x=c-'0'; if(x%2==0) cout<<1<<endl; else cout<<-1<<endl; return 0; } G、数独数组 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N], s[N][N]; int a[100010], t[15]; #define int long long signed main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x; cin >> x; t[x]++; } int b = n / 9; if (n % 9 != 0) { int d = n % 9; int sum = 0; for (int i = 1; i <= 9; i++) { if (t[i] - b == 1) { sum++; } else if (t[i] - b > 1) { cout << "NO"; return 0; } } if (sum == d) { cout << "YES"; } else { cout << "NO"; } return 0; } else { for (int i = 1; i <= 9; i++) { if (t[i] != b) { cout << "NO"; return 0; } } } cout << "YES"; return 0; } H、两数之和 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; int a[100010],t[15]; #define int long long signed main() { int z; cin>>z; if(z<=2) { cout<<"NO"; } else{ cout<<"YES"<<endl; cout<<1<<' '<<z-1; } return 0; } I、小美的外卖订单编号 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; int a[100010],t[15]; #define int long long signed main() { int q; cin>>q; while(q--) { int m,x; cin>>m>>x; int r=x%m; if(r==0) { cout<<m; } else { cout<<r; } cout<<endl; } return 0; } J、清楚姐姐买竹鼠 #include <bits/stdc++.h> using namespace std; const int N = 501; int A[N][N],s[N][N]; int a[100010],t[15]; #define int long long signed main() { int a,b,x; cin>>a>>b>>x; double m=b/3.0; if(m<a) { int d=x/3; int res=x-d*3; if(a*res<b) { cout<<a*res+d*b; } else { cout<<(d+1)*b; } } else { cout<<x*a; } return 0; }

更新于2026年12月3日 · 共584字

大学生数学竞赛 第十七届 非数学A类 一 (1)泰勒公式 非数学B类 第十六届 非数学B类 一 (1)泰勒公式 第十五届 非数学A类 一 (1)洛必达法则 第十四届 第十三届 初赛 一 (1)极限四则运算+无穷小量

更新于2026年9月7日 · 共89字

LLM LLM使软件设计转向高度协作且互动的过程。 LLMs生成的UML代码(如Mermaid或PlantUML)是可直接运行的。 微服务和事件驱动属于架构模式。 LLM能自动生成代码和UML图,自然使高层设计与代码实现更一致。

更新于2026年9月7日 · 共108字