poj 2871 A Simple Question of Chemistry
来源:互联网 发布:反馈网络的作用 编辑:程序博客网 时间:2024/05/17 16:44
该题是个水题, 题意就是输入999之前的数时,第二个数开始,每输入一个数的时候,减去前一个数输出差,最后999时输出End of Output
#include<stdio.h>#include<string.h>int main(){ double a,b; scanf("%lf",&a); while(~scanf("%lf",&b)) { if(b==999) { printf("End of Output\n");break;} printf("%.2f\n",b-a); a=b; } return 0;}
0 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 G++
- zoj 1763 A Simple Question of Chemistry
- zoj 1763 A Simple Question of Chemistry
- zoj1763-----------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
- 1763 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 【位数问题setprecision】
- ZOJ Problem Set - 1763 A Simple Question of Chemistry
- poj2871 A Simple Question of Chemistry(水题)
- Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd#).
- RFID第三周作业
- 模式识别:分类器的性能评价
- Courses
- 第31天【健身】
- poj 2871 A Simple Question of Chemistry
- 杭电 HDU 1034 Candy Sharing Game
- python里面的“数组”——列表(清单整理)【1】
- php使用curl访问https示例分享
- 棋盘游戏
- DeepLearning 0.1 documentation中文翻译_内容扉页
- Hadoop故障分析
- Swap
- 《Head First 设计模式》读书笔记之装饰者模式