library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub matumoto1234/library

:warning: string/substr.hpp

Depends on

Code

#pragma once

#include "./base.hpp"

#include <string>

namespace matumoto {
  string substr(const string &s, int l, int r) {
    string res = "";
    for (int i = l; i < r; i++) {
      res += s[i];
    }
    return res;
  }
} // namespace matumoto
#line 2 "string/substr.hpp"

#line 2 "string/base.hpp"

namespace matumoto {
  using namespace std;
}
#line 4 "string/substr.hpp"

#include <string>

namespace matumoto {
  string substr(const string &s, int l, int r) {
    string res = "";
    for (int i = l; i < r; i++) {
      res += s[i];
    }
    return res;
  }
} // namespace matumoto
Back to top page