POJ 1658 Eva's Problem
来源:互联网 发布:开票软件显示离线 编辑:程序博客网 时间:2024/04/20 19:36
#include<stdio.h>
int main()
{
int i, n, a[5];
scanf("%d", &n);
while(n--)
{
for(i=0; i<4; i++)
{
scanf("%d", a+i);
}
if(a[0]+a[3] == a[1]+a[2])
a[4] = a[3] + a[1] - a[0];
else
a[4] = a[3]*(a[3]/a[2]);
for(i=0; i<4; i++)
{
printf("%d/n", a[i]);
}
printf("%d/n", a[4]);
}
return 0;
}
int main()
{
int i, n, a[5];
scanf("%d", &n);
while(n--)
{
for(i=0; i<4; i++)
{
scanf("%d", a+i);
}
if(a[0]+a[3] == a[1]+a[2])
a[4] = a[3] + a[1] - a[0];
else
a[4] = a[3]*(a[3]/a[2]);
for(i=0; i<4; i++)
{
printf("%d/n", a[i]);
}
printf("%d/n", a[4]);
}
return 0;
}
- POJ 1658 Eva's Problem
- POJ 1658 Eva's Problem
- poj 1658 Eva's Problem
- poj 1658 Eva's Problem
- poj 1658 Eva's Problem
- poj 1658 Eva's Problem(水题)
- POJ 1658 Eva's Problem(水~)
- Eva's Problem - 1658
- 百练 1658 Eva's Problem
- Eva's Problem
- poj1658 Eva's Problem!
- POJ 1658 Eva's Problem(水到极点)
- POJ-1658-Eva's Problem-2013-11-28 22:03:45
- POJ1658浅析------Eva's Problem
- POJ 1658 Eva's Problem(我的水题之路——等差or等比)
- POJ 1702 Eva's Balance
- POJ 1702 Eva's Balance
- poj 1702(Eva's Balance)
- POJ 2140 Herd Sums
- 成功日志
- 初学汇编的知识总结!
- 再次安家落户
- WAVE头分析代码
- POJ 1658 Eva's Problem
- 2小时5台3389肉鸡,国人网络安全意思真差
- .Net2.0中通过委托和事件进行线程安全的控件访问
- 调用API函数取得文件图标和文件类型
- 闲话
- (老家的一篇文章)书评《C++编程规范》
- Photoshop也曝高危漏洞 可被远程攻击
- Skype聊天小心 新蠕虫病毒借其传播
- 写给计算机的大学生