#include <stdio.h>\n#define x 100010\nchar a[x];\nint main()\n{\n\tgets(a);\n\tint i,j;\n\tint count=0;\n\tfor(i=0;a[i];++i){\n\t\tfor(j=0;a[j];++j){\n\t\t\tif(a[i]==a[j]&&i!=j){\n\t\t\t\tcount=1;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\tif(count==0){\n\t\tprintf("%c",a[i]);\n\t\tbreak;\n\t} else if(count==1&&a[i+1]==0) {\n\t\tprintf("NO");\n\t}\n\t\tcount=0;\n\t}\n\treturn 0;\n}


原文地址: https://www.cveoy.top/t/topic/pvJW 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录