結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー shioyashioya
提出日時 2018-09-21 16:10:16
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 587 bytes
コンパイル時間 850 ms
コンパイル使用メモリ 72,980 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-25 10:44:06
合計ジャッジ時間 1,567 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 WA -
testcase_05 AC 1 ms
4,380 KB
testcase_06 WA -
testcase_07 AC 2 ms
4,376 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 WA -
testcase_12 AC 1 ms
4,376 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<vector>
#include<iostream>
#include<stdio.h>
#include<string>
#include<utility>
#include<algorithm>

#define loop while(1)
#define SZ(x) ((int)(x).size())
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define pushb push_back
#define popb pop_back
#define VI vector<int> 
#define VVI vector<VI>

typedef long long int ll;


using namespace std;


int main()
{
    int y,m,d;
    scanf("%d/%d/%d",&y,&m,&d);
    d+=2;
    if(d>31){
        d %= 31;
        m++;
    }
    if(m>12){
        m %= 12;
        y++;
    }
    printf("%04d/%02d/%02d",y,m,d);
	return 0;
}
0