fork download
  1. import java.io.BufferedReader;
  2. import java.io.InputStreamReader;
  3.  
  4. public class Main {
  5. public static void main(String[] args) throws Exception{
  6. BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
  7. String[] params = bufferedReader.readLine().split(" ");
  8. int a = Integer.parseInt(params[0]);
  9. int b = Integer.parseInt(params[1]);
  10. System.out.println((b + 4) / 7 - (a + 3) / 7);
  11. }
  12. }
Success #stdin #stdout 0.07s 2184192KB
stdin
1 3
stdout
1