fork download
  1. N = int(input())
  2. S = [int(x) for x in input().split()]
  3. count = 1
  4. S.sort()
  5. for i in range(len(S) - 1):
  6. if S[i] >= N:
  7. j = i
  8. while S[j + 1] - S[j] >= 3:
  9. count += 1
  10. print(count)
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
N = int(input())
^
1 error
stdout
Standard output is empty