poj1658
来源:互联网 发布:git ubuntu安装 编辑:程序博客网 时间:2024/06/12 01:06
#include "stdafx.h"
#include<iostream>
using namespace std;
int a[20];
int main()
{
int n;
cin>>n;
for(int i=0;i<n;i++)
{
for(int k=0;k<4;k++)
cin>>a[k];
if(a[0]+a[3]==a[1]+a[2])
a[4]=a[0]+4*(a[1]-a[0]);
else if(a[0]*a[3]==a[1]*a[2])
a[4]=a[0]*pow(double(a[1]/a[0]),4);
for(int l=0;l<5;l++)
cout<<a[l]<<" ";
cout<<endl;
}
return 0;
}
0 0
- poj1658
- poj1658
- poj1658
- poj1658
- poj1658 Eva's Problem!
- POJ1658浅析------Eva's Problem
- poj1658——Eva's Problem
- codeforces 274B Zero Tree(树形dp)
- 安卓布局属性整理
- Apriori算法的java实现(星星学习笔记)
- iOS捕获异常,常用的异常处理方法
- ACM--steps--2.2.8--第一类stirling数
- poj1658
- Spring与Quartz的整合实现定时任务调度
- FragmentPagerAdapter.notifyDataSetChanged() 不起作用
- 啊哈C——学习5.3、5.4判断一个正整数是否为质数
- POJ1717 Dominoes DP,背包的变形
- iOS UITextView 输入内容实时更新cell的高度
- ORA-39212: installation error: XSL stylesheets not loaded correctly
- Groovy的调试环境
- Linux Mint (应用软件—小企鹅输入法:Fcitx)