#include<stdio.h>
int main()
{
int n,q,m,date,max,i;
int a[100];
while(scanf("%d%d",&n,&q)&&n){
for(i = 0;i<100;i++)
a[i] = 0;
while(n--){
scanf("%d",&m);
while(m--){
scanf("%d",&date);
a[date-1]++;
}
}
max = 0;
for(i = 0;i<100;i++)
if(a[max]<a[i]) max = i;
if(a[max]>=q) printf("%d\n",max + 1);
else printf("0\n");
}
return 0;
}相关推荐
描述了 OpenCode Server 的全部 HTTP API 软件工程基于OpenAPI规范的AI辅助开发平台接口设计:全栈会话管理与多工具集成系统实现
内容概要:本文档定义了名为“opencode”的开放API接口规范,基于OpenAPI 3.1.1标准,为开发者提供了一套与OpenCode服务器交互的完整方法集合。API涵盖了从系统健康检查、全局事件订阅、配置管理到身份验证、日志记录、工作区(workspace)和会话(session)管理、终端(PTY)操作、项目控制、文件搜索与操作、AI提供商管理、同步机制以及用户界面(TUI)指令等全方位的功能。它允许客户端查询服务器状态、管理资源、执行命令、与AI助手互动并监听各种系统事件,从而实现对OpenCode开发环境的深度集成和自动化控制。; 适合人群:具备RESTful API使用经验的软件开发人员、DevOps工程师、AI集成开发者以及希望将OpenCode平台功能嵌入到自己工具或工作流中的技术团队。; 使用场景及目标:① 开发者可以利用此API构建自定义插件或脚本,以自动化项目初始化、环境配置和部署流程;② 实现第三方应用与OpenCode的实时通信,如监控系统状态、接收通知或远程触发代码分析任务;③ 构建基于会话的智能编程助手前端,通过API
zoj 1715 When Can We Meet?
水题。。。 在找出最多个会议成员空闲的公共时间相同的情况下输出最早的时间 #include int main() { int n,q,m,i,num[105],x,max; while(scanf("%d%d",&n,&q)!=EOF) { if(n==0&&q==0)break; for(i=0;i<105;i++)num[i]=0; while(n--)
全自动纸箱包装机.rar
全自动纸箱包装机.rar
zoj 1715 When Can We Meet?(水~)
<br />额。水题。<br /> <br />崩溃的是我看错题了,绕了好多弯路。。。呜呜。。。啥破眼神。。。<br /> <br />不能主观臆断主观臆断啊啊啊啊。。。<br /> <br /> <br /> <br />#include <iostream> using namespace std; int main(void) { int N,Q,i,j,M; int state[50][102],sum[102],len,maxlen,x,maxnum,tempi;
(简单)When Can We meet?
#include #include #include #include #include using namespace std; int main() { freopen("fuck.txt","r",stdin); int i,j,k; int n; while (cin>>n>>k,n) { int go[101]={0}; while (n--) { c
POJ 2028 When Can We Meet? (又是一道水题)
【题目简述】:N代表有几个会员,Q代表有几个会员的时候开会才算做有效,接下来N行,每行第一个数字代表这行有M个数,说明这个会员在哪几天有时间。最后让我们求出 最快 哪天开会。 【分析】:简单题,见代码。 // 248K 47Ms #include using namespace std; int M[101]; int N,Q; int main() { int m;
ZOJ 1715 When Can We Meet?
When Can We Meet? Time Limit: 2 Seconds Memory Limit: 65536 KB The ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. Howev
1715_When Can We Meet?
The ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are so busy maniacally developing (possibly u
ZOJ1715 POJ2028 When Can We Meet? 简单的数组题
很简单,我用了vector来做。注意ACM中数组这些都应该开大一点,否则会runtime error。 /*******************************************************************************
zoj1715---------------------When Can We Meet?
The ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are so busy maniacally developing (possibly u
2028 When Can We Meet?
<br />这个题虽然挺简单的,但是这个题的思路挺好的,有必要记下来。思路是:将每个人的日期记在一个一维数组里,求得每个日期有多少人参加,从该数组中找第一个最大的值,并且该值必须大于q,则该值就是所要求的值,如果没有这样的值,就输出0。代码如下:<br />#include "stdio.h" #include "string.h" int main() { freopen("in.txt","r",stdin); int n,q; int i,j,k; int m[101]; w
POJ 2028 When Can We Meet?(模拟)
When Can We Meet? Description The ICPC committee would like to have its meeting as soon as possible to address every little issue of the next contest. However, members of the committee are s
双工位铆接机.rar
双工位铆接机.rar
QYR-18900-2026-2032全球与中国工业碳捕集与利用(CCU)市场现状及未来发展趋势 Sample-何燕.pdf
QYR-18900-2026-2032全球与中国工业碳捕集与利用(CCU)市场现状及未来发展趋势 Sample-何燕.pdf
676




被折叠的 条评论
为什么被折叠?



