poj2864
2024-08-25 10:54:30
#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main ()
{
int n,m;
while(scanf("%d %d",&m,&n)&&m&&n)
{
int t=,flag=;
int a[][]={};
int i,j;
for(i=;i<n;i++)
for(j=;j<m;j++)
scanf("%d",&a[i][j]);
for(j=;j<m;j++)
{
t=,flag=;
for(i=;i<n;i++)
t+=a[i][j];
if(t==n){flag=;break;}
}
if(flag)
printf("yes\n");
else
printf("no\n");
}
return ;
}
最新文章
- 如何判断自己的VPS是那种虚拟技术实现的
- 登录oracle数据库提示账户锁定解决方法
- Error Domain=ASIHTTPRequestErrorDomain Code=8 ";Failed to move file from";xxx/xxx";to";xxx/xxx";
- 一步一步教你如何解锁被盗的iPhone 6S
- 让Bootstrap轮播插件carousel支持左右滑动手势的三种方法
- leetcode@ [354] Russian Doll Envelopes (Dynamic Programming)
- mac os x 10.9.1 安装 Homebrew软件包管理工具及brew安装maven3.1.1
- 【转】UILabel、UITextView自适应得到高度
- ckeditor常用设置
- 开源的Android视频播放器
- C语言陷阱:浮点运算
- 中篇: php 微信支付 基于Thinkphp3.2开发
- Android图表库MPAndroidChart(十三)——简约的底部柱状图
- Dubbo x Cloud Native 服务架构长文总结(很全)
- 解决phpmyadmin 遇见的问题
- gtid_executed和gtid_purged变量是如何初始化的
- python学习之基础语法
- linux centos 如何设置swap大小?
- 【转】各种消息下wParam及lParam值的含义
- 配置文件备份方案(expect+shell)