結果
| 問題 | No.721 Die tertia (ディエ・テルツィア) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-07 01:06:31 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 36,020 KB |
| 最終ジャッジ日時 | 2026-02-22 01:27:06 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
#include <time.h>
#include <stdio.h>
#include <string.h>
int main(){
struct tm t;
memset(&t,0,sizeof(t));
scanf("%d/%d/%d",&t.tm_year,&t.tm_mon,&t.tm_mday);
t.tm_year-=1900;
t.tm_mon--;
time_t k=mktime(&t);
k+=2*24*60*60;
localtime_r(&k,&t);
printf("%d/%02d/%02d\n",t.tm_year+1900,t.tm_mon+1,t.tm_mday);
}