@[a_little_carrot](/user/1042960) 送你个缺省源:
```cpp
#include<bits/stdc++.h>
#include<iostream>
#include<stdio.h>
#include<math.h>
#include<time.h>
#include<windows.h>
#include<set>
#include<stack>
#include<queue>
#include<deque>
#include<map>
#include<algorithm>
#include<vector>
//#define int long long
//#define il inline
using namespace std;
template<typename type>
void read(type&x){x=0;bool flag=0;char ch=getchar();while(!isdigit(ch))flag^=ch=='-',ch=getchar();while(isdigit(ch))x=(x<<1)+(x<<3)+(ch^48),ch=getchar();flag?x=-x:0;}
template<typename type>
void write(type x){x<0?x=-x,putchar('-'):0;static short Stack[50],top(0);do Stack[++top]=x%10,x/=10;while(x);while(top)putchar(Stack[top--]|48);}
char read(char&ch){return ch=getchar();}
char write(const char&ch){return putchar(ch);}
template<typename type,typename...T>
void read(type&x,T&...y){read(x),read(y...);}
template<typename type,typename...T>
void write(type x,T...y){write(x),putchar(' '),write(y...),sizeof...(y)^1?0:putchar('\n');}
signed main()
{
// std::ios::sync_with_stdio(0),std::cin.tie(0),std::cout.tie(0);
return 0;
}
```
这里 `read()`/`write()` 可以有任意多个参数
by WydnksqhbD_3 @ 2024-04-27 21:03:56
@[WydnksqhbD_3](/user/753481) orz
by a_little_carrot @ 2024-04-27 21:04:38
@[a_little_carrot](/user/1042960) `write()` **参数间**自动空格,**一个 `write()` 完了**会换行
by WydnksqhbD_3 @ 2024-04-27 21:07:42
@[WydnksqhbD_3](/user/753481) 啥意思
by a_little_carrot @ 2024-04-27 21:19:50
@[a_little_carrot](/user/1042960)
```cpp
int x = 10;
long long y = 20;
char z = 'k';
write (x, y, z);
write (x, y, z);
```
效果:
```
10 20 k
10 20 k
```
by WydnksqhbD_3 @ 2024-04-27 21:44:20
@[a_little_carrot](/user/1042960) 你都 `unsigned` 了还 `f=-1` 呢。
by UnforgettableDream @ 2024-04-27 22:11:22
@[UnforgettableDream](/user/1347770) 这先别管 输入无负数
by a_little_carrot @ 2024-04-29 20:24:42