UVA 11150 Java

import java.util.*;
import static java.lang.System.*;
public class main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    while(sc.hasNextInt())
    {
    	int n = sc.nextInt();
    	System.out.println(n + n / 2);
    }
  }
};

留言

這個網誌中的熱門文章

UVA 11321 Java