快读,快输板子
作者:互联网
template<class T> void read(T &res) { res = 0; char c = getchar(); T f = 1; while(c < '0' || c > '9') { if(c == '-') f = -1; c = getchar(); } while(c >= '0' && c <= '9') { res = res * 10 + c - '0'; c = getchar(); } res *= f; }
标签:char,read,res,板子,快输,while,&&,快读,getchar 来源: https://www.cnblogs.com/Suiyue-Li/p/11287186.html