#include<cstdio>
#include<cstring>
#include<algorithm>
#include<iostream>
#include<cassert>
#include<ctime>
#include<bitset>
#include<queue>
#include<set>
#define inf (1<<30)
#define INF (1ll<<62)
#define prt(x) cout<<#x<<":"<<x<<" "
#define prtn(x) cout<<#x<<":"<<x<<endl
using namespace std;
typedef long long ll;
template<class T>void sc(T &x){
x=0;char c;int f=1;
while(c=getchar(),c<48)if(c=='-')f=-1;
do x=x*10+(c^48);
while(c=getchar(),c>47);
x*=f;
}
template<class T>void nt(T x){
if(!x)return;
nt(x/10);
putchar('0'+x%10);
}
template<class T>void pt(T x){
if(x<0)putchar('-'),x=-x;
if(!x)putchar('0');
else nt(x);
}
int main(){
// freopen("pro.in","r",stdin);
// freopen("chk.out","w",stdout);
return 0;
}
Origin Only IO
最新推荐文章于 2025-06-09 17:51:27 发布
本文介绍了C++中模板函数的应用实例,展示了如何通过模板实现不同类型的数据输入输出,并进行了简单的性能优化。
1040

被折叠的 条评论
为什么被折叠?



