42 lines
602 B
C++
42 lines
602 B
C++
#include <iostream>
|
|
#include <string>
|
|
#include <cmath>
|
|
#include <sstream>
|
|
#include <iterator>
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
void run_case(){
|
|
int r, c;
|
|
|
|
cin >> r >> c;
|
|
|
|
vector<vector<int>> table;
|
|
table.reserve(r);
|
|
|
|
for(int ri = 0; ri < r; ++ri){
|
|
for(int ci = 0; ci < c; ++ci){
|
|
int i;
|
|
cin >> i;
|
|
table[ri].push_back(i);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
int main(){
|
|
ios::sync_with_stdio(0);
|
|
cin.tie(0);
|
|
|
|
int t;
|
|
cin >> t;
|
|
|
|
for(int tc = 1; tc <= t; ++tc){
|
|
cout << "Case #" << tc << ": ";
|
|
run_case();
|
|
}
|
|
} |