Rebased projecteuler folder, now includes all contest programming stuff
This commit is contained in:
42
google/kickstart/2021roundA/b.cpp
Normal file
42
google/kickstart/2021roundA/b.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
#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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user