| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12424 | SHOUT AT ME |
|
| 12408 | Matrix Multiplication |
|
Description
In general, using ALL CAPITAL LETTERS is considered rude, and may be interpreted as screaming or shouting in written text.
ALSO, IT SEEMS A LITTLE HARDER TO READ.
A crazy guy tring to do some bad thing with above idea. he want to translate all lowercase letter to uppercase letter!!!
Note : If you are using visual studio, add #pragma warning(disable:4996) in the first line so that you can use scanf on your local machine.
Input
A string consisting of only lowercase letters, whose length does not exceed 100.
(hint: there will be a newline character '\n' after the input string).
Output
A string consisting of only uppercase letters, followed by a newline character.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
One day, a mathematician hired you to implement "matrix multiplication". The details are shown below:

Note : If you are using visual studio, add #pragma warning(disable:4996) in the first line so that you can use scanf on your local machine
Hint: C[i][j] = A[i][0] * B[0][j] + A[i][1] * B[1][j] + .... A[i][An-1] * B[An-1][j]
Input
You are given two input matrices, A and B.
For each matrix, m represents the number of rows and n represents the number of columns.
It is guaranteed that 2<= m <= 10, 2<= n <= 10 and every value in the given matrices are integers in the range of [0, 100].
Also, you may assume that it is valid to multiply A with B, i.e., number of columns of A equals number of rows of B.
The input format may be described as the following:
Am An
A11 A12 ,,, A1n
A21 A22 ... A2n
...
Bm Bn
B11 B12 ,,, B1n
B21 B22 ... B2n
...
Output
Output the result of matrix multiplication.
All elements in a row should be separated by a space, and make sure there is a trailing space followed by a newline character at the end of each line.