public static void main(String[] args){

Scanner s = new Scanner(System.in);

       int a = s.nextInt();

       int b = s.nextInt();

       

      

       //값의 범위 안 맞을 때 

      if(b>9){

       System.out.print("값의 범위가 틀렸습니다.");

       }

      //b가 a보다 클때 

      if(a<b){

      System.out.println("0");

      }

      //a의 범위가 10 미만일 때 

      if(a>b && a< 10){

      System.out.println("1");

      }

      //a의 범위가 10이상일 때 

      if(a>10){

      if(a/10 == b){

      if(a >= b){

      System.out.println(a/10 + (a + 2));

      }else{

      System.out.println(a/10 + (a +1));

      }

           }

      if(a/10 >b){

      if(>= b){

      System.out.println((a/10-1) +11+1);

      }else{

      System.out.println((a/10-1) +11);

      }

      }

      if(a/10 <b){

      System.out.println(a/10);

      }

      }




하... 디버깅 대신 해달라고 했더니 자꾸 태클 걸어서 이번엔 디버깅 하고 왔다 ㅠㅠ 

이번엔 맞을거야...코드에 데이터값은 의식의 흐름대로 쓴거라서 저런거니까 태클 ㄴㄴ해라