p2p1 complete
This commit is contained in:
@@ -19,10 +19,8 @@ int main(){
|
||||
stringstream wholeDoc;
|
||||
|
||||
ifstream puzzle("input.txt", ifstream::in);
|
||||
wholeDoc << puzzle.rdbuf();
|
||||
|
||||
while (getline(puzzle, line)) {
|
||||
cout << line<<"\n";
|
||||
istringstream lineStream(line);
|
||||
string numberString;
|
||||
list<int> currentLevels;
|
||||
@@ -44,7 +42,7 @@ int main(){
|
||||
} else if (prevlevel > currentLevels.front()){
|
||||
dir = UP;
|
||||
} else {
|
||||
break;
|
||||
currentLevels.clear();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user