結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-19 18:00:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 2,640 ms
コンパイル使用メモリ 72,944 KB
実行使用メモリ 57,152 KB
最終ジャッジ日時 2023-08-02 16:42:01
合計ジャッジ時間 8,210 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 199 ms
56,532 KB
testcase_01 AC 202 ms
57,064 KB
testcase_02 AC 190 ms
56,856 KB
testcase_03 AC 222 ms
56,520 KB
testcase_04 AC 206 ms
57,048 KB
testcase_05 AC 200 ms
57,152 KB
testcase_06 AC 197 ms
56,988 KB
testcase_07 AC 197 ms
56,456 KB
testcase_08 AC 204 ms
56,532 KB
testcase_09 AC 197 ms
56,316 KB
testcase_10 AC 190 ms
56,768 KB
testcase_11 AC 189 ms
56,824 KB
testcase_12 AC 204 ms
56,840 KB
testcase_13 AC 213 ms
56,792 KB
testcase_14 AC 210 ms
56,648 KB
testcase_15 AC 195 ms
56,428 KB
testcase_16 AC 195 ms
56,400 KB
testcase_17 AC 198 ms
56,668 KB
testcase_18 AC 186 ms
56,820 KB
testcase_19 AC 201 ms
57,004 KB
testcase_20 AC 200 ms
56,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.text.*;

public class Main {

    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        final DateFormat DF = new SimpleDateFormat("yyyy/MM/dd");
        Calendar cal = Calendar.getInstance();
        cal.setTime(DF.parse(s));
        cal.add(Calendar.DATE, 2);
        System.out.println(DF.format(cal.getTime()));
    }
}
0