Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int n, m;
- cin >> n >> m;
- int w[n], p[n];
- for(int i = 0; i < n; ++i){
- cin >> w[i] >> p[i];
- }
- int a[m][n];
- for(int i = 0; i < n; ++i){
- a[0][i] = 0;
- }
- for(int i = 0; i < m; ++i){
- a[i][0] = 0;
- }
- for(int i = 0; i < m; ++i){
- for(int j = 0; i < n; ++i){
- cout << a[i][j];
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement