mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-12-16 15:44:39 +00:00
12 lines
148 B
C
12 lines
148 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int y, m, d;
|
||
|
|
||
|
scanf("%2d-%2d-%4d", &m, &d, &y);
|
||
|
|
||
|
printf("%04d-%02d-%02d\n", y, m, d);
|
||
|
|
||
|
return 0;
|
||
|
}
|