#include<bits/stdc++.h>usingnamespace std;intmain(){int l, h, a, b;
cin >> l >> h >> a >> b;if(a >= l && b >= l){
cout << a <<"-Y "<< b <<"-Y\n";
cout <<"huan ying ru guan";}elseif(min(a, b)< l &&max(a, b)>= h){
cout << a <<"-Y "<< b <<"-Y\n";int x, y;if(a > b) x =1, y =2;else x =2, y =1;printf("qing %d zhao gu hao %d\n", x, y);}elseif(a < l && b < l){
cout << a <<"-N "<< b <<"-N\n";
cout <<"zhang da zai lai ba";}elseif(a < l && b >= l && b < h){
cout << a <<"-N "<< b <<"-Y\n";
cout <<"2: huan ying ru guan";}elseif(a >= l && a < h && b < l){
cout << a <<"-Y "<< b <<"-N\n";
cout <<"1: huan ying ru guan";}return0;}
#include<bits/stdc++.h>usingnamespace std;intmain(){int x, y; cin >> x >> y;
x += y;longlong ans =1;for(int i =1; i <= x; i ++) ans *= i;
cout << ans;return0;}-----
```cpp
#include<bits/stdc++.h>usingnamespace std;bool vis[10][10];intmain(){
vector<int>a(6);for(int i =0; i <6; i ++){
cin >> a[i];
vis[i][a[i]]=true;}int x; cin >> x;for(int i =1; i <= x; i ++){for(int j =0; j <6; j ++){// debug(j);for(int k =6; k >=1; k --){if(!vis[j][k]){
vis[j][k]=true;
a[i]= k;break;}}
cout << a[i]<<" \n"[j ==5];}}for(int i =0; i <6; i ++){
cout << a[i]<<" \n"[i ==5];}return0;}
#include<bits/stdc++.h>#include<debugger>usingnamespace std;bool vis[10][10];intmain(){
string a, b; cin >> a >> b;
string s1, s2;int n = a.size();for(int i =1; i < n; i ++){if(a[i]%2== a[i -1]%2){
s1 +=max(a[i], a[i -1]);}}
n = b.size();for(int i =1; i < n; i ++){if(b[i]%2== b[i -1]%2){
s2 +=max(b[i], b[i -1]);}}if(s1 == s2){
cout << s1 <<"\n";}else{
cout << s1 <<"\n"<< s2 <<"\n";}}
#include<bits/stdc++.h>#include<debugger>usingnamespace std;intmain(){int n, m, q; cin >> n >> m >> q;
vector<bool>h(n),l(m);while(q --){int op, x;
cin >> op >> x;if(!op){
h[x -1]=true;}else{
l[x -1]=true;}}int ans =0;for(int i =0; i < n; i ++){for(int j =0; j < n; j ++)if(!h[i]&&!l[j]){
ans ++;}}
cout << ans <<"\n";}
#include<bits/stdc++.h>#include<debugger>usingnamespace std;intmain(){int n, k, s;
cin >> n >> k >> s;
vector<int>cnt1(300);
vector<int>cnt2(300);for(int i =0; i < n; i ++){int x, y; cin >> x >> y;if(y >= s) cnt1[x]++;else cnt2[x]++;}int ans =0;for(int i =175; i <=290; i ++){
ans +=min(cnt2[i], k);
ans += cnt1[i];}
cout << ans <<"\n";}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 周边上新:园子的第一款马克杯温暖上架
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
· 使用C#创建一个MCP客户端