首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >10071 - Back to High School Physics

10071 - Back to High School Physics

作者头像
熙世
发布2019-07-15 16:24:51
发布2019-07-15 16:24:51
62200
举报
文章被收录于专栏:Code思维奇妙屋Code思维奇妙屋
运行总次数:0

Problem B

Back to High School Physics

Input: standard input

Output: standard output

A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?

Input

The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (-100 <= v <= 100) and t(0<=t<= 200) ( t means at the time the particle gains that velocity) 

Output

For each line of input print a single integer in one line denoting the displacement in double of that time.

Sample Input

0 0 5 12

Sample Output

0 120

___________________________________________________________________________________ Shahriar Manzoor

注:两倍时间所走路程(并非位移或单倍时间).

代码:

代码语言:javascript
代码运行次数:0
运行
复制
#include "stdio.h"

int main()
{
    int v,t;
    while(scanf("%d %d",&v,&t)!=EOF)
    {
        printf("%d\n",2*v*t);
    }
    return 0;
}
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2014-04-06 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档