結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー htensaihtensai
提出日時 2019-11-12 00:16:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 220 ms / 2,000 ms
コード長 402 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 72,848 KB
実行使用メモリ 56,964 KB
最終ジャッジ日時 2023-10-13 13:52:24
合計ジャッジ時間 8,299 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 195 ms
56,880 KB
testcase_01 AC 200 ms
56,748 KB
testcase_02 AC 200 ms
56,760 KB
testcase_03 AC 205 ms
56,592 KB
testcase_04 AC 199 ms
56,144 KB
testcase_05 AC 220 ms
56,444 KB
testcase_06 AC 189 ms
56,556 KB
testcase_07 AC 205 ms
56,656 KB
testcase_08 AC 198 ms
56,584 KB
testcase_09 AC 188 ms
55,092 KB
testcase_10 AC 186 ms
56,576 KB
testcase_11 AC 185 ms
56,936 KB
testcase_12 AC 201 ms
56,848 KB
testcase_13 AC 177 ms
56,308 KB
testcase_14 AC 174 ms
56,692 KB
testcase_15 AC 185 ms
56,964 KB
testcase_16 AC 190 ms
56,840 KB
testcase_17 AC 190 ms
56,752 KB
testcase_18 AC 196 ms
56,776 KB
testcase_19 AC 187 ms
56,692 KB
testcase_20 AC 186 ms
56,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy/MM/dd");
		Date d = sdf.parse(sc.next());
		GregorianCalendar gc = new GregorianCalendar();
		gc.setTime(d);
		gc.add(Calendar.DATE, 2);
		System.out.println(sdf.format(gc.getTime()));
	}
}
0