Skip to content

Instantly share code, notes, and snippets.

@dohvis
Last active October 13, 2015 13:25
Show Gist options
  • Save dohvis/5ee8c7160d89557c7411 to your computer and use it in GitHub Desktop.
Save dohvis/5ee8c7160d89557c7411 to your computer and use it in GitHub Desktop.
char buf[16];
scanf("%16s", buf);
// 첫글자는 A , 마지막 글자는 C, 중간에 몇글자가 오든 상관 X, a 랑 c 대소문자 구분 X
/*
AAC O
Aac O
aGC O
aadfADvVZAADFCCc O
abc O
A134123467628A34C X
ada5sfdso X
a113c X
a!c X
a5c X
*/
if (ac(buf) == true)
{
printf("%s, OK\n",buf);
}
else
{
printf("NONO\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment