結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー GrenacheGrenache
提出日時 2018-09-16 17:22:28
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 892 bytes
コンパイル時間 3,576 ms
コンパイル使用メモリ 72,812 KB
実行使用メモリ 60,524 KB
最終ジャッジ日時 2023-09-25 09:02:18
合計ジャッジ時間 9,460 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 223 ms
57,020 KB
testcase_01 AC 215 ms
56,336 KB
testcase_02 AC 196 ms
56,716 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 218 ms
56,884 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 206 ms
56,464 KB
testcase_15 AC 192 ms
56,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

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