UVa:10167-birthday cake
来源:互联网 发布:mac 格式化移动硬盘 编辑:程序博客网 时间:2024/05/17 23:22
#include<cstdio>
int x[500],y[500];
int main()
{
int n,a,b;
scanf("%d",&n);
int i;
for(i=0;i<2*n;i++)
scanf("%d%d",&x[i],&y[i]);
for(a=-500;a<=500;a++)
for(b=0;b<=500;b++)
{
int count=0;
for(i=0;i<2*n;i++)
if(x[i]*a+y[i]*b>0)
count++;
if(count==n)
{
printf("%d %d/n",a,b);
return 0;
}
}
return 0;
}
- UVa 10167 - Birthday Cake
- UVa:10167-birthday cake
- UVA 10167 Birthday Cake
- uva 10167 - Birthday Cake
- UVa 10167 Birthday Cake
- uva 10167 - Birthday Cake
- UVa 10167 Birthday Cake
- uva 10167 - Birthday Cake
- UVa 10167 - Birthday Cake
- uva-10167 - Birthday Cake
- UVA 10167 - Birthday Cake
- uva 10167 Birthday Cake
- UVa 10167Birthday Cake
- uva 10167 Birthday Cake
- uva 10167 Birthday Cake
- UVA 10167 Birthday Cake
- uva 10167--birthday cake
- uva 10167 Birthday Cake
- 详细的MySQL C API
- 生成->条件编译符号
- ural 1026 Questions and Answers
- 处理语句 _MySQL 的 C API预
- MySQL 加入微软Visual Studio工业伙伴
- UVa:10167-birthday cake
- cvc-complex-type.2.4.a错误解决方法
- 【原创】我的新年祝福短信
- 参考手册MySQL 以及MySQL下载网址:
- MySQL 加固方法
- 建立 Subversion 服务器 by Michael
- MySQL 加固方法
- 参考手册MySQL 以及MySQL下载网址:
- MySQL 加入微软Visual Studio工业伙伴