This documentation is automatically generated by online-judge-tools/verification-helper
#include "tools/vector-to-string.hpp"#pragma once
#include "./base.hpp"
#include <string>
#include <vector>
namespace matumoto {
template <typename T>
string vector_to_string(const vector<T> &vs, const string &sep = " ") {
stringstream ss;
for (int i = 0; i < static_cast<int>(vs.size()); i++) {
if (i)
ss << sep;
ss << vs[i];
}
return ss.str();
}
} // namespace matumoto#line 2 "tools/vector-to-string.hpp"
#line 2 "tools/base.hpp"
namespace matumoto {
using namespace std;
}
#line 4 "tools/vector-to-string.hpp"
#include <string>
#include <vector>
namespace matumoto {
template <typename T>
string vector_to_string(const vector<T> &vs, const string &sep = " ") {
stringstream ss;
for (int i = 0; i < static_cast<int>(vs.size()); i++) {
if (i)
ss << sep;
ss << vs[i];
}
return ss.str();
}
} // namespace matumoto