Update longestSWRC.cpp

second time complete