poj 3299
来源:互联网 发布:add鼓音源下载mac 编辑:程序博客网 时间:2024/05/04 12:05
用小题目试用了一下emacs这种神器。。。
#include <cstdio>#include <iostream>#include <cstring>#include <cstdlib>#include <set>#include <vector>#include <map>#include <list>#include <iomanip>#include <algorithm>#include <deque>#include <string>#include <cctype>g++#include <cmath>using namespace std; ///宏定义const int INF = 20000000;const int maxn = 2000;///全局变量 全局函数double T, D, H;//温度,露点, 湿度///int main(){ /// while(1) { T = D = H = 200; char temp; while(scanf("%c", &temp) && temp == '\n'); if(temp == 'E') break; double tmp; scanf("%lf", &tmp); if(temp == 'T') T = tmp; else if(temp == 'D') D = tmp; else if(temp == 'H') H = tmp; while(scanf("%c", &temp) && temp == ' '); // scanf("%c", &temp); scanf("%lf", &tmp); if(temp == 'T') T = tmp; else if(temp == 'D') D = tmp; else if(temp == 'H') H = tmp; if(T == 200) { T = H - 0.5555*(6.11*exp(5417.7530*(1/273.16-1/(D + 273.16)))-10); } else if(D == 200) { D = 1/((1/273.16)-((log((((H - T)/0.5555)+10.0)/6.11))/5417.7530))-273.16; } else if(H == 200) { H = T + 0.5555 *(6.11 * exp(5417.7530*(1/273.16-1/(D + 273.16))) - 10); } printf("T %.1f D %.1f\ H %.1f\n", T, D, H); }///结束 return 0;}
- poj 3299
- POJ 3299
- poj 3299
- POJ 3299
- poj 3299
- POJ 3299
- POJ 3299
- poj 3299
- POJ 3299
- poj 3299
- poj 3299
- poj 3299
- POJ 3299
- poj 3299
- POJ 3299
- POJ 3299
- POJ 3299
- poj 3299
- xml解析工具类
- 大数据总结
- Hibernate 一对一连接表双向关联
- 拉普拉斯分布
- 经典石子合并问题
- poj 3299
- 用Google Analytics跟踪页面404错误与死链接
- 开源Portal的简单介绍分析
- 字体阴影
- sql server 存储过程中获取另一个存储过程返回的记录集
- 浅学设计模式之桥接<bridge>模式
- Input (Radio Check)
- XCode4 怎么添加一个已存在的Framework?
- struts2解决重复提交问题