Actualize un poco las soluciones en c++ por aprender cositas

This commit is contained in:
Daniel Cortés
2020-12-02 06:59:56 -03:00
parent 145c688999
commit f8a17e3fa0
3 changed files with 54 additions and 58 deletions

View File

@@ -12,7 +12,6 @@ std::set<int> read_input_file() {
while(std::getline(file, line))
data.insert(std::stoi(line));
file.close();
return data;
}
@@ -22,7 +21,6 @@ int main(){
for(auto &i: data) {
int rest = 2020 - i;
for(auto &j: data) {
int second_rest = rest - j;
if (data.count(second_rest)) {