1 solutions
-
0
C++ :
#include <bits/stdc++.h> using namespace std; char a[105][105]; int main(){ int n,m; int x1,x2,y1,y2; cin >> n >> m >> x1 >> x2 >> y1 >> y2; for (int i = 1;i<=n;i++){ for (int j = 1;j<=m;j++){ cin >> a[i][j]; } } for (int i = x1;i<=x2;i++){ for (int j = y1;j<=y2;j++){ cout << a[i][j]; } cout << endl; } return 0; }
- 1
Information
- ID
- 234
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By