Wrong Answer
Code
#include<stdio.h>
int main()
{
int x, y;
char a[999], b[999];
for(int i=0; i<x; i++)
{
scanf("%s", &a[i]);
}
scanf("%d", &y);
for(int i=0; i<x; i++)
{
scanf("%d", &b[i]);
}
for(int i=0; i<x; i++)
{
for(int j=0; j<x-1; j++)
{
if(a[i]==b[j])
{
printf("Welcome!");
for(int k=x-1; k>=0; k++)
{
if(b[k]==b[j])
{
printf("Already inside!");
}
}
}
else if(a[i]!=b[j])
{
printf("Sorry, not on the list.");
}
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1227 LUCC Party Check-in
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-09-01 06:45:09
- Judged At
- 2025-09-01 06:45:09
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 284.0 KiB