結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー kekenx
提出日時 2020-03-06 12:58:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 315 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-14 02:43:18
合計ジャッジ時間 1,782 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import datetime

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

s = readline().decode().strip()
y, m, d = [int(x) for x in s.split("/")]

t = datetime.datetime(y, m, d)
t = t + datetime.timedelta(days=+2)
ans = t.strftime("%Y/%m/%d")
print(ans)
0