2017年4月7日 星期五

UVa 10071 Back to High School Physics - 參考答案

Difficulty: Eazy
Ref: UVa Online Judge - UVa 10071 Back to High School Physics
/*******************************************************/
/* UVa 10071 - Back to High School Physics             */
/* Author: awei0905  [at]  awei0905.blogspot.tw        */
/* Version: 2017/04/07                                 */
/*******************************************************/
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>

int main() {
 int v, t;
 while (scanf("%d%d", &v, &t) != EOF)
  printf("%d\n", 2 * v * t);
}
Debug: I/O, uDebug
0 0
-100 200
-100 0
100 0
100 200
38 22
-31 161
-100 155
-100 163
17 116
0
-40000
0
0
40000
1672
-9982
-31000
-32600
3944

沒有留言:

張貼留言