結果
問題 |
No.721 Die tertia (ディエ・テルツィア)
|
ユーザー |
![]() |
提出日時 | 2020-01-22 16:04:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 1,404 ms |
コンパイル使用メモリ | 164,192 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-08 07:25:12 |
合計ジャッジ時間 | 2,136 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 15 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int y, m, d; scanf("%d/%d/%d", &y, &m, &d); struct tm t = {}; t.tm_year = y; t.tm_mon = m - 1; t.tm_mday = d + 2; mktime(&t); printf("%04d/%02d/%02d\n", t.tm_year, t.tm_mon + 1, t.tm_mday); }