結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2019-02-19 18:00:54
言語 Java21
(openjdk 21)
結果
AC  
実行時間 193 ms / 2,000 ms
コード長 442 bytes
コンパイル時間 3,321 ms
コンパイル使用メモリ 74,500 KB
実行使用メモリ 43,660 KB
最終ジャッジ日時 2024-04-20 16:45:52
合計ジャッジ時間 7,619 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 193 ms
43,620 KB
testcase_01 AC 187 ms
42,968 KB
testcase_02 AC 178 ms
43,660 KB
testcase_03 AC 190 ms
43,092 KB
testcase_04 AC 186 ms
43,336 KB
testcase_05 AC 189 ms
43,180 KB
testcase_06 AC 189 ms
43,520 KB
testcase_07 AC 188 ms
43,084 KB
testcase_08 AC 187 ms
43,324 KB
testcase_09 AC 187 ms
43,192 KB
testcase_10 AC 177 ms
42,764 KB
testcase_11 AC 191 ms
43,020 KB
testcase_12 AC 188 ms
43,112 KB
testcase_13 AC 185 ms
43,120 KB
testcase_14 AC 185 ms
42,572 KB
testcase_15 AC 188 ms
43,392 KB
testcase_16 AC 184 ms
43,344 KB
testcase_17 AC 183 ms
43,296 KB
testcase_18 AC 178 ms
42,940 KB
testcase_19 AC 188 ms
43,244 KB
testcase_20 AC 192 ms
43,548 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