結果
| 問題 |
No.721 Die tertia (ディエ・テルツィア)
|
| コンテスト | |
| ユーザー |
nxteru
|
| 提出日時 | 2018-08-03 22:26:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 614 bytes |
| コンパイル時間 | 631 ms |
| コンパイル使用メモリ | 80,444 KB |
| 実行使用メモリ | 6,940 KB |
| 最終ジャッジ日時 | 2024-09-19 17:28:43 |
| 合計ジャッジ時間 | 1,323 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 3 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
typedef double D;
typedef pair<int,int> P;
#define M 1000000007
#define F first
#define S second
#define PB push_back
int y,m,d;
char c;
int u[12]={31,29,31,30,31,30,31,31,30,31,30,31};
int main(void){
cin>>y>>c>>m>>c>>d;
d+=2;
if(u[m-1]<d){
d-=u[m-1];
m++;
if(m==13){
y++;
m=1;
}
}
printf("%d/%02d/%02d\n",y,m,d);
}
nxteru