2625 - EECS2310_Quiz_1 Scoreboard

Time

2022/10/27 08:00:00 2022/10/27 10:00:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
13665 EE2310_Quiz_1_1
13666 EE2310_Quiz_1_2
13667 EE2310_Quiz_1_3

13665 - EE2310_Quiz_1_1   

Description

You are to implement a program asking the user to input two integers m and n corresponding to an mxn matrix, followed by all entries of that matrix as shown in the input. Your program should do nothing more than outputting the matrix. Be careful not to output any extra whitespaces at the end and always put a '\n' at the end of the output. You may assume the maximum colums and rows of the input matrix is 10, and you do not need to check whether the input is correct or not.

Input

3 2
12 8
3 17
9 8

Output

12 8
3 17
9 8

 

Sample Input  Download

Sample Output  Download

Tags




Discuss




13666 - EE2310_Quiz_1_2   

Description

Continued from Problem #1. You are to inplement a program that performs matrix multiplication. The user is expected to input two matrices in the same format as described in Problem #1. Your program should output the matrix result.

Input

3 2
1 1
2 2
3 3
2 3
1 1 1
2 2 2

Output

3 3 3
6 6 6
9 9 9

 

Sample Input  Download

Sample Output  Download

Tags

140



Discuss




13667 - EE2310_Quiz_1_3   

Description

The user is expected to input an array of integers (possibly negative) and your program determines whether there exists a subarray (which is a nonempty subset of the array consisting of consecutive elements) whose elements sum to zero. Output "yes" or "no" followed by '\n'. The input format is the same as Lab 6-2. You can assume the maximum length of the input array is 20. In the given example, the input is {4, 2, -3, 1, 6}, which contains a subarray {2, -3, 1} whose elements sum to 0.

Input

5
4 2 -3 1 6

Output

yes

 

Sample Input  Download

Sample Output  Download

Tags




Discuss