解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class T1976 { public static int count(String s,char ch){ int count = 0; for(int i = 0;i<s.length();i++){ if(s.charAt(i) == ch) count++; } return count; } public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ String s = in.next(); for(int i = 0;i<s.length();i++){ if(count(s,s.charAt(i)) == 1) System.out.print(s.charAt(i)); } System.out.println(); } in.close(); } }
0.0分
0 人评分