UVA 10071 Java

  1. import java.util.*;
  2. import static java.lang.System.*;
  3.  
  4. public class main{
  5. public static void main(String[] args) {
  6. Scanner sc=new Scanner(System.in);
  7. while(sc.hasNextInt())
  8. {
  9. int v = sc.nextInt();
  10. int t = sc.nextInt();
  11. System.out.println(v * t * 2);
  12. }
  13. }
  14. };
  15.  

留言

這個網誌中的熱門文章

C# 井字遊戲