Wrong Answer
Code
#include<stdio.h>
#include<string.h>
int main()
{
int t;
scanf("%d",&t);
for(int i=1;i<=t;i++)
{
char a[100000+1];
scanf("%s",&a);
if(strlen(a)==1)
{
printf("%c\n",a[0]);
}
else
{
for(int i=0;i<strlen(a);i+=2)
{
printf("%c",a[i]);
}
}
printf("\n");
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1080 String Algorithm
- Contest
- Bangladesh 2.0
- Language
- C11 (GCC 13.2.0)
- Submit At
- 2024-08-16 16:09:40
- Judged At
- 2024-10-03 13:28:25
- Judged By
- Score
- 0
- Total Time
- 7ms
- Peak Memory
- 324.0 KiB