MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Method main

Codechef/Java/RedAlert.java:5–19  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

3
4public class Main {
5 public static void main(String args[]) {
6 Scanner sc = new Scanner(System.in);
7 int test = sc.nextInt();
8 while (test-- > 0) {
9 int n = sc.nextInt(); // till date
10 int d = sc.nextInt(); // reduce amount
11 int h = sc.nextInt(); // red alert
12 int arr[] = new int[n];
13 for (int i = 0; i < n; i++) {
14 arr[i] = sc.nextInt();
15 }
16 func(arr, n, d, h);
17 // System.out.println(Arrays.toString(arr));
18 }
19 }
20
21 public static void func(int[] arr, int n, int d, int h) {
22 int waterLevel = 0;

Callers

nothing calls this directly

Calls 1

funcMethod · 0.95

Tested by

no test coverage detected