Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ctime>
- #include <stdlib.h>
- #include <iostream>
- #include <iomanip>
- #include <numeric>
- #include <chrono>
- #define sizeMatrix 300
- #define cycleValue 100000
- int main()
- {
- //initialization
- int matr[10000][10000], sum[10000];
- for (int i = 0; i < 10000; i++)
- {
- for (int j = 0; j < 10000; j++)
- {
- matr[i][j] = rand() % 100;
- }
- sum[i] = 0;
- }
- //calculating sum of columns (result in sum[])
- for (int i = 0; i < 10000; i++)
- {
- for (int j = 0; j < 10000; j++)
- {
- sum[i] += matr[j][i];
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement