fork download
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. public class NaebbiracPhrases {
  5.  
  6. static PrintWriter out = new PrintWriter(new BufferedOutputStream(System.out));
  7. static StringTokenizer st = new StringTokenizer("");
  8.  
  9. public static String next() {
  10. try {
  11. while (!st.hasMoreTokens()) {
  12. String s = br.readLine();
  13. if (s == null)
  14. return null;
  15. st = new StringTokenizer(s);
  16. }
  17. return st.nextToken();
  18. } catch(Exception e) {
  19. return null;
  20. }
  21. }
  22. public static void main(String[] asda) throws Exception {
  23. int CASES = Integer.parseInt( next() );
  24. while (CASES-- > 0) {
  25. String s = next();
  26. String t = next();
  27. int ans = 0;
  28. for (int k = 0; k < s.length(); k++)
  29. ans += s.charAt(k) != t.charAt(k) ? 1 : 0;
  30. out.println(ans);
  31. }
  32. //
  33. out.flush();
  34. System.exit(0);
  35. }
  36.  
  37. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: error: class NaebbiracPhrases is public, should be declared in a file named NaebbiracPhrases.java
public class NaebbiracPhrases  {
       ^
1 error
stdout
Standard output is empty