zoj 2351 Litmus Test
来源:互联网 发布:sql distinct 编辑:程序博客网 时间:2024/05/16 18:19
#include "iostream"#include "stdio.h"#include "cmath"#include "iomanip"using namespace std;int main(){int testcase, m, n;double k, a, ph;cin >> testcase;while (testcase--){while (scanf("%le%le%d%d", &k, &a, &m, &n) && k && a && m && n){ph = -log10((sqrt(k * k + 4 * k * a * m * n)-k)/2/n);cout.setf(ios::fixed);cout << setprecision(3) << ph << endl;}if (testcase)cout << endl;}}
- zoj 2351 Litmus Test
- ZOJ 2351 Litmus Test
- poj 2006 Litmus Test 【即zoj 2351:计算酸的PH】
- POJ 2006 Litmus Test(水~)
- POJ 2006:Litmus Test 化学公式
- POJ 2006 Litmus Test (简单数学&弱酸的电离常数)
- The XML Litmus Test Understanding When and Why to Use XML
- POJ 2006 Litmus Test 笔记 高中化学没学好看了几遍没看懂
- XML Litmus 测试
- ZOJ 3927 Programming Ability Test
- zoj-3927-Programming Ability Test
- ZOJ 3927Programming Ability Test(水题)
- ZOJ-3581 A Simple Test 模拟连连看
- test
- test
- test
- test
- test
- 时间复杂度
- fedora 16 其他配置
- USB Mass Storage协议
- 五大常用算法之一:分治算法
- a22222222222
- zoj 2351 Litmus Test
- 第十四
- js图片等比缩放
- 终于解决了fedora 16下chromium浏览器Shockwave Flash崩溃的问题
- 五大常用算法之三:贪心算法
- uClinux on Blackfin BF533 STAMP - A DSP Linux Port
- iOS_UIWebview
- zoj 2376 Ants
- 第十五