mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
17 lines
239 B
C
17 lines
239 B
C
#include <stdio.h>
|
|
char str[256];
|
|
char ans[256];
|
|
int main()
|
|
{
|
|
scanf("%s",str);
|
|
int a=0;
|
|
int b=0;
|
|
while(str[a]!=0)
|
|
{
|
|
if((str[a]-'0')%2) ans[b++]=str[a];
|
|
++a;
|
|
}
|
|
printf("%s\n",ans);
|
|
return 0;
|
|
}
|