`
Midnight0101
  • 浏览: 15924 次
  • 性别: Icon_minigender_1
  • 来自: 天津
最近访客 更多访客>>
社区版块
存档分类
最新评论

water~2

阅读更多
poj3299http://poj.org/problem?id=3299
#include <iostream>
#include <fstream>
#include <cmath>
#define EXP 2.718281828

using namespace std;

double funcE(double dewPoint)
{
	return 6.11*pow(EXP,5417.7530*((1.0/273.16)-(1.0/(dewPoint+273.16))));
}

double funcH(double t,double d)
{
	return t+0.5555*(funcE(d)-10.0);
}

double funcT(double h,double d)
{
	return h-0.5555*(funcE(d)-10.0);
}

double funcEToD(double e)
{
	return 1.0/(1.0/273.16-log(e/6.11)/5417.7530)-273.16;
}

double funcD(double t,double h)
{
	return funcEToD((h-t)/0.5555+10.0);
}

int main()
{
//ifstream cin("1.txt");
	char ca,cb;
	double a,b;
	
	while(1)
	{		
		cin>>ca;	
		if(ca=='E')
			break;
		cin>>a>>cb>>b;		
		
		if(ca=='T' && cb=='D')
			printf("T %.1f D %.1f H %.1f\n",a,b,funcH(a,b));
		
		else if(ca=='D' && cb=='T')
			printf("T %.1f D %.1f H %.1f\n",b,a,funcH(b,a));
		
		else if(ca=='T' && cb=='H')
			printf("T %.1f D %.1f H %.1f\n",a,funcD(a,b),b);
		
		else if(ca=='H' && cb=='T')
			printf("T %.1f D %.1f H %.1f\n",b,funcD(b,a),a);			
		else if(ca=='H' && cb=='D')
			printf("T %.1f D %.1f H %.1f\n",funcT(a,b),b,a);
			
		else if(ca=='D' && cb=='H')
			printf("T %.1f D %.1f H %.1f\n",funcT(b,a),a,b);
			

		
	}
	return 0;
}
分享到:
评论

相关推荐

    Unity Water 2D Kit 1.1

    2. RenderTexture - the shader uses a texture rendered by a camera placed behind the water geometry. It can be optimised to give the best performance on mobile platforms. The package also features: +...

    Unity2dWater_2dwater_Unity2d水_

    Unity2d 模拟东西掉入水中,水面波澜效果,波动幅度,范围有参数控制组件添加:BuoyancyEffector2D 支持物体掉入水中的浮力,2d游戏水插件

    Dynamic Water Physics2.rar

    动态水物理2是一个水-物体相互作用模拟器,它使用网格数据来模拟浮力和流体动力学,使其适合任何形状或大小的物体,移动或静止。 DWP2是对先前版本的完全重写,以利用新的Unity特性并获得更好的性能。

    Water Lite mobile-ready 1.71.7z

    An advanced water system for Unity. Water+ is very fast and it is optimized to run on almost any hardware possible while looking amazing. This is a lite version of the full Water+ plugin. It has most...

    Water+2D+Tool

    Water+2D+Tool Unity3D 实现2D水物理效果,水平面会根据物品的碰撞产生水平面曲线变化

    stylized water 2 URP v1.1.7

    The successor to the original Stylized Water Shader asset, widely adopted since 2016. Now re-imagined from the ground up for the Universal Render Pipeline. Rather than being PBR-based, a custom ...

    Water+2D+Kit+v1.1

    Water+2D+Kit+v1.1 Unity3D实现2D水效果。通过shadow渲染水的动感

    SUIMONO Water System 2.1.3

    SUIMONO 2.1 - Interactive Water System brings advanced and deeply customizable ocean and water effects to Unity. Realistic Water Rendering - Uses advanced rendering techniques such as refraction, ...

    Unity插件 Stylized Water 2 v1.5

    Unity插件 Stylized Water 2 v1.5 Unity水资源插件,湖泊、海洋、河流 导入资源可直接运行查看效果,支持urp

    UNITY 水体 波纹Water 2D Tool.unitypackage

    UNITY Watertools 2D水波纹 https://assetstore.unity.com/packages/vfx/shaders/substances/water-2d-tool-35521

    WaterPro7.0_热力计算_waterpro_

    根据压力、温度、焓、熵、比容五个参数中的任意两个来计算去其他15个水蒸气参数,其软件主要用于水热力性能计算、蒸汽热力性质计算

    Dynamic Water Physics 2.unitypackage

    Dynamic Water Physics 2是一种水-物体相互作用模拟器,它使用网格数据模拟浮力和流体动力学,使其适用于任何形状或大小的物体,无论是运动的还是静止的。 DWP2是对先前版本的完整重写,以利用Unity的新功能并获得...

    Unity_2D-Water

    这个是2D-Water.unitypackage的压缩包,解压后可以直接导入Unity。 这个2D-Water组件里提供了各种水的材质和Shader,还有一个预制好了的prefab,可以直接用,调整一下相关数值就是自己想要的2D水了

    Water.曲谱 限时发布

    Water 曲谱

    seawater_carbonn99_matlab_zip_seawater_

    matlab seawater 基础程序包

    camelotvfx advanced water fx

    camelotvfx advanced water fx camelotvfx advanced water fx

    unity Water FX Pack

    unity水特效Water FX Pack unity水特效Water FX Pack unity水特效Water FX Pack unity水特效Water FX Pack

    SeaWater.zip_density_matlab_riden3n_seawater_zip

    matlab code for seawater calculation

    MATLAB工具箱大全-海洋要素计算工具箱seawater

    MATLAB工具箱大全-海洋要素计算工具箱seawater

    GIS for water resource management

    applications in water resources engineering. The book has been developed with two primary sections. For the first part of the book (Chapters 1–4), the emphasis is on developing an understanding of ...

Global site tag (gtag.js) - Google Analytics