結果
| 問題 | No.721 Die tertia (ディエ・テルツィア) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-07 01:06:31 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 785µs | |
| コード長 | 315 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 35,584 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-21 23:00:57 |
| 合計ジャッジ時間 | 1,671 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}