close

sample input

0 0

5 12    // 5 是v,12是t,輸出時間為2t的位移。5 * 12 * 2 = answer

--------

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package uva10071;

import java.util.Scanner;

/**
 *
 * @author awesq
 */
public class UVa10071 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {
            Scanner sc = new Scanner(System.in);
            while (sc.hasNextInt()) {
                int a = sc.nextInt();
                int b = sc.nextInt();
                System.out.println("" + (a * b * 2));
            }
        } catch (Exception e) {
            System.out.println("Wrong");
        }
    }

}
 

arrow
arrow
    全站熱搜

    awesq123 發表在 痞客邦 留言(0) 人氣()