FOJ 1164 Average is not Fast Enough!
来源:互联网 发布:java命令参数 编辑:程序博客网 时间:2024/04/19 19:44
#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int main(){ //freopen("1.txt","r",stdin);
int n,m,i,hour,min,second; double d; scanf("%d%lf",&n,&d); while(scanf("%d",&m)!=EOF) { char str[30]; double sum=0; bool mark=true; for(i=0;i<n;i++) { scanf("%s",str); if(strcmp(str,"-:--:--")==0) {mark=false;continue;} sscanf(str,"%d:%d:%d",&hour,&min,&second); sum+=hour*3600+min*60+second; } if(mark==false) {printf("%3d: -\n",m);continue;} sum=sum/d+0.5; printf("%3d: %d:%02d min/km\n",m,(int)sum/60,(int)sum%60); }}
- FOJ 1164 Average is not Fast Enough!
- 【FOJ 1164】 Average is not Fast Enough!
- Average is not Fast Enough!
- Average is not Fast Enough!
- Average is not Fast Enough!
- Average is not Fast Enough!(格式化输入输出)
- HDU 1036 Average is not Fast Enough!
- HDU 1036 Average is not Fast Enough!
- HDU 1036 Average is not Fast Enough!
- HDOJ 1036 Average is not Fast Enough!
- HDU1036 Average is not Fast Enough!
- HDU 1036 Average is not Fast Enough!
- Average is not Fast Enough! hdoj 1036
- hdu 1036 Average is not Fast Enough!
- HDU 1036 Average is not Fast Enough!
- POJ 2565 Average is not Fast Enough!
- HDU 1036 Average is not Fast Enough!
- HDU1036 Average is not Fast Enough!(java)
- blktrace 深度了解linux系统的IO运作
- 课程设计表
- jQuery formValidator表单验证插件
- PHP截取中文
- Android系统Recovery工作原理之使用update.zip升级过程分析(一)---update.zip包的制作
- FOJ 1164 Average is not Fast Enough!
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket解决
- Android系统Recovery工作原理之使用update.zip升级过程分析(二)---update.zip差分包问题的解决
- phonegap入门(一)- 创建第一个phonegap
- Android系统Recovery工作原理之使用update.zip升级过程分析(三)---Android系统的三种启动模式
- Android系统Recovery工作原理之使用update.zip升级过程分析(四)---Android系统Recovery模式的工作
- 系统负载
- 安卓开发adb联机调试方法
- Android系统Recovery工作原理之使用update.zip升级过程分析(五)---update.zip包怎样从上层进入Recovery服务