d049: 中華民國萬歲!
題目:http://zerojudge.tw/ShowProblem?problemid=d049
程式碼:
程式碼:
import java.util.Scanner;
  
public class d049 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            int a = Integer.parseInt(in.nextLine());
            System.out.println(a - 1911);
        }
    }
}

留言
張貼留言