高中没那么简单

回到高中物理,公式2*v*t,输入t跟t,

 

#include<stdio.h>

    int main()  {

      int v,t;

      while(scanf("%d %d", &v,&t) != EOF)

          printf("%d\n", 2*v*t);

      return 0; 

}

  http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1012

posted @ 2013-02-28 18:55  L kill  阅读(83)  评论(0编辑  收藏  举报