连读!!
作者:
殇ベ_11
,
2021-08-16 14:36:43
,
所有人可见
,
阅读 273
#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 1;
template<typename T>
inline void read(T &x){
x = 0;
char c = getchar();
int f = 1;
while(!isdigit(c)){if(c == '-') f = -1; c = getchar();}
while(isdigit(c)){x = (x << 1) + (x << 3) + (c - '0'); c = getchar();}
x = x * f;
}
template<typename T, typename ...T1>
inline void read(T&x, T1& ...x1){
read(x);
read(x1...);
}
int main(){int a, b, c;
read(a, b, c, ...);
cout <<a + b + c + ...;
}