結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー komkomhkomkomh
提出日時 2019-06-06 20:11:54
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 286 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 10,991 ms
コンパイル使用メモリ 410,668 KB
実行使用メモリ 51,452 KB
最終ジャッジ日時 2023-08-13 02:25:24
合計ジャッジ時間 18,482 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 274 ms
50,900 KB
testcase_01 AC 282 ms
51,148 KB
testcase_02 AC 283 ms
51,020 KB
testcase_03 AC 277 ms
50,956 KB
testcase_04 AC 286 ms
50,760 KB
testcase_05 AC 277 ms
50,876 KB
testcase_06 AC 279 ms
51,080 KB
testcase_07 AC 278 ms
51,032 KB
testcase_08 AC 277 ms
51,012 KB
testcase_09 AC 282 ms
51,052 KB
testcase_10 AC 283 ms
50,872 KB
testcase_11 AC 280 ms
50,812 KB
testcase_12 AC 282 ms
50,940 KB
testcase_13 AC 274 ms
51,452 KB
testcase_14 AC 279 ms
50,756 KB
testcase_15 AC 278 ms
50,760 KB
testcase_16 AC 279 ms
51,000 KB
testcase_17 AC 278 ms
51,124 KB
testcase_18 AC 280 ms
50,908 KB
testcase_19 AC 280 ms
50,860 KB
testcase_20 AC 280 ms
50,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

import java.time.LocalDate
import java.time.format.DateTimeFormatter

fun main() {
    val S = readLine()!!

    val formatter = DateTimeFormatter.ofPattern("yyyy/MM/dd")
    val date = LocalDate.parse(S, formatter)
    val ans = date.plusDays(2).format(formatter)
    println(ans)
}
0