POJ 2871 A Simple Question of Chemistry(水题)
2014-09-24 16:21
411 查看
【题意简述】:后一个数减去前一个数并输出。
【分析】:水
【分析】:水
//208K 16Ms #include<iostream> using namespace std; int main() { double a; double b; bool flag = false; double ans; while(cin>>a) { if(a==999) { cout<<"End of Output"<<endl; break; } if(!flag) { b = a; flag = true; } else { ans = a-b; b = a; printf("%.2f\n",ans); } } return 0; }
相关文章推荐
- POJ 2871 A Simple Question of Chemistry(我的水题之路——数列两数之差 )
- poj 2871 A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry
- poj 2871 A Simple Question of Chemistry
- POJ 2871 A Simple Question of Chemistry(水~)
- poj2871 A Simple Question of Chemistry(水题)
- poj2871 A Simple Question of Chemistry
- ZOJ 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry(洪水!)
- 1763 A Simple Question of Chemistry
- zoj1763-----------A Simple Question of Chemistry
- ZOJ Problem Set–1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- 1763_A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- zju1763一个简单的化学问题A Simple Question of Chemistry
- ZOJ 1763: A Simple Question of Chemistry 【位数问题setprecision】