Submission
Status:
[PPPP-SSS]
Subtask/Task Score:
{0/100}
Score: 0
User: ZanTy
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-04 09:58:26
#include<bits/stdc++.h>
char a[25];
char b[25];
char check[25];
int main(){
scanf("%s",a);
scanf("%s",b);
for (int i = 0;a[i] != '\0';i++){
char need = '\0';
int state = 1;
for (int j = 0;b[j] != '\0';j++){
if (a[i] == b[j]){
need = a[i];
}
}
for (int j = 0;check[j] != '\0';j++){
if (need = check[i]){
state = 0;
}
}
if (state && need != '\0'){
printf("%c ",need);
}
}
}