結果
問題 | No.721 Die tertia (ディエ・テルツィア) |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:09:24 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 345 bytes |
コンパイル時間 | 326 ms |
コンパイル使用メモリ | 81,908 KB |
実行使用メモリ | 54,996 KB |
最終ジャッジ日時 | 2025-03-20 21:10:07 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
from datetime import date, timedelta# Read the input dateinput_date = input().strip()year, month, day = map(int, input_date.split('/'))# Create a date object and add two dayscurrent_date = date(year, month, day)two_days_later = current_date + timedelta(days=2)# Format the output as specifiedprint(two_days_later.strftime('%Y/%m/%d'))