/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 1ms 284.0 KiB
#2 Wrong Answer 2ms 536.0 KiB

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
C99 (GCC 13.2.0)
Submit At
2024-08-16 16:07:18
Judged At
2024-11-11 03:16:01
Judged By
Score
0
Total Time
2ms
Peak Memory
536.0 KiB