mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1738.c
This commit is contained in:
parent
6def391a9a
commit
233427153c
16
QUSTOJ/1738.c
Normal file
16
QUSTOJ/1738.c
Normal file
|
@ -0,0 +1,16 @@
|
|||
#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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user