A. Wasted Time
来源:互联网 发布:结对编程表情包 编辑:程序博客网 时间:2024/05/21 19:21
解题说明:此题就是求N段线段距离
#include<cstdio>#include<iostream>#include<cstring>#include<cmath>using namespace std;int main(){int n,k;int i;double sum;double x[101],y[101];scanf("%d %d",&n,&k);sum=0;scanf("%lf %lf",&x[0],&y[0]);for(i=1;i<n;i++){scanf("%lf %lf",&x[i],&y[i]);sum+=sqrt((x[i]-x[i-1])*(x[i]-x[i-1])+(y[i]-y[i-1])*(y[i]-y[i-1]));}sum=(sum/50)*k;printf("%lf\n",sum);return 0;}
- A. Wasted Time
- A. Wasted Time
- Codeforces 127A-Wasted Time(题意)
- Wasted Time
- Wasted Time CodeForces
- 事务时间如何去掉wasted time
- 事务时间如何去掉wasted time
- every day that we spent not improving our xx was a wasted day
- wasted buffer pool memory
- A love before time
- A Head of Time
- a^b time limit
- A notion of time
- A C M time
- It is a long time.
- Time is like a river
- a good tech time schedule
- A Real Time Radiosity Architecture
- UVA 1203 Argus
- 启用:set autotrace traceonly 报错:SP2-0618: 无法找到会话标识符。启用检查 PLUSTRACE 角色SP2-0611: 启用 STATISTICS 报告时出错
- nslookup命令
- linux 内核调试
- C++ static
- A. Wasted Time
- UVA 641 - Do the Untwist
- opencv-canny边缘检测
- <br />, \r\n
- Python 中 strip lstrip rstrip的使用方法
- sizeof()用法汇总
- 用bis和bic实现所有位级操作
- C#_常用正则表达式总结
- 游戏编辑工具