結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー Grenache
提出日時 2018-09-16 17:22:28
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 892 bytes
コンパイル時間 3,527 ms
コンパイル使用メモリ 75,724 KB
実行使用メモリ 44,548 KB
最終ジャッジ日時 2024-07-18 07:25:06
合計ジャッジ時間 7,841 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder721 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		String[] ymd = sc.next().split("/");

		Calendar cal = Calendar.getInstance();
		
		cal.set(Integer.parseInt(ymd[0]), Integer.parseInt(ymd[1]), Integer.parseInt(ymd[2]));
		cal.add(Calendar.DATE, 2);

		pr.printf("%d/%02d/%02d", cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DATE));
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(INPUT == null ? System.in : new ByteArrayInputStream(INPUT.getBytes()));
		pr = new Printer(System.out);

		solve();

//		pr.close();
		pr.flush();
//		sc.close();
	}

	static String INPUT = null;

	private static class Printer extends PrintWriter {
		Printer(OutputStream out) {
			super(out);
		}
	}
}
0