結果
| 問題 |
No.721 Die tertia (ディエ・テルツィア)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-08-07 01:04:47 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 292 bytes |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 27,136 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 18:20:17 |
| 合計ジャッジ時間 | 981 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 15 WA * 3 |
コンパイルメッセージ
main.c: In function 'main':
main.c:11:9: warning: implicit declaration of function 'localtime_r'; did you mean 'localtime'? [-Wimplicit-function-declaration]
11 | localtime_r(&k,&t);
| ^~~~~~~~~~~
| localtime
ソースコード
#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_mon--;
time_t k=mktime(&t);
k+=2*24*60*60;
localtime_r(&k,&t);
printf("%d/%02d/%02d\n",t.tm_year,t.tm_mon+1,t.tm_mday);
}