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

Method main

Codechef/Java/xor_folding.java:11–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

9class XORFOLD
10{
11 public static void main (String[] args) throws java.lang.Exception
12 {
13 Scanner sc = new Scanner(System.in);
14 int t = sc.nextInt();
15 while(t--!=0)
16 {
17 int n=sc.nextInt();
18 int m=sc.nextInt();
19 String arr[]=new String[n];
20 for(int i=0;i<n;i++)
21 {
22 arr[i]=sc.next();//Taking input of each row
23 }
24 int result=solve(arr,n,m);//calling the function
25
26 if(result==1)
27 System.out.println("YES");
28 else
29 System.out.println("NO");
30 }
31}
32
33 static int solve(String[] arr,int len,int m) {
34

Callers

nothing calls this directly

Calls 2

solveMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected