This documentation is automatically generated by online-judge-tools/verification-helper
View the Project on GitHub hitonanode/cplib-cpp
#include "utilities/reader.hpp"
std::cin より高速な標準入力.
std::cin
int n = rdi(); long long m = rdll(); string s = rdstr();
#pragma once #include <cstdio> #include <string> // CUT begin template <typename T> T rd_integer() { T ret = 0; bool minus = false; char c = getchar_unlocked(); while (!isdigit(c)) minus |= (c == '-'), c = getchar_unlocked(); while (isdigit(c)) ret = (ret << 1) + (ret << 3) + (c ^ 48), c = getchar_unlocked(); return minus ? -ret : ret; } int rdi() { return rd_integer<int>(); } long long rdll() { return rd_integer<long long>(); } std::string rdstr() { std::string ret; char c = getchar_unlocked(); while (!isgraph(c)) c = getchar_unlocked(); while (isgraph(c)) ret += c, c = getchar_unlocked(); return ret; }
#line 2 "utilities/reader.hpp" #include <cstdio> #include <string> // CUT begin template <typename T> T rd_integer() { T ret = 0; bool minus = false; char c = getchar_unlocked(); while (!isdigit(c)) minus |= (c == '-'), c = getchar_unlocked(); while (isdigit(c)) ret = (ret << 1) + (ret << 3) + (c ^ 48), c = getchar_unlocked(); return minus ? -ret : ret; } int rdi() { return rd_integer<int>(); } long long rdll() { return rd_integer<long long>(); } std::string rdstr() { std::string ret; char c = getchar_unlocked(); while (!isgraph(c)) c = getchar_unlocked(); while (isgraph(c)) ret += c, c = getchar_unlocked(); return ret; }