diff --git a/Main.class b/Main.class new file mode 100644 index 0000000..52d2bfc Binary files /dev/null and b/Main.class differ diff --git a/Main.java b/Main.java new file mode 100644 index 0000000..8b93970 --- /dev/null +++ b/Main.java @@ -0,0 +1,63 @@ +import java.io.*; +import java.util.*; + +class Main { + static int n, m, l; + static int[] s; + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + StringTokenizer st = new StringTokenizer(br.readLine()); + n = Integer.parseInt(st.nextToken()); + m = Integer.parseInt(st.nextToken()); + l = Integer.parseInt(st.nextToken()); + s = new int[m]; + for(int i = 0;i= minLen) { + count++; + last = s[i]; + } + + if (count == q && (l - last) >= minLen) { + return true; + } + } + return false; + } +} + +// 10 10 15 20 5 10 \ No newline at end of file