Question: Write a program in C++ for: Input Input a relation matrix every time, with a space between every two adjacent elements in each line. The
Write a program in C++ for:
Input Input a relation matrix every time, with a space between every two adjacent elements in each line. The cardinality of relation is less than 12. Output Output the relation matrix of the transitive closure of the relation. Note: you can use while (scanf("%d",&a)!=EOF) Test Input Expected Output Time limitation Memory limitation Extra process number Test Case 1 1 seconds 256M 0 View plain 1. 1 1 1 1 View plain 1. 0 1 0 0 2. 1 0 1 0 3. OOO 12 4. 0 1 0 0 2. 1 10 3. 1 1 1 1 4. 1 1 1 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
