跳到正文

个人记录

快读快写

jjjppp约 1 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
typedef long long ll;
//仅可为整数
// 快读函数n = read()
inline ll read() {
ll x=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){
if (ch=='-') f=-1;
ch=getchar();
}
while (ch>='0'&&ch<='9'){
x=x*10+ch-'0';
ch=getchar();
}
return x*f;
}
// 快写函数;write(n);
inline void write(ll x) {
if(x<0){
putchar('-');
x=-x;
}
if (x>9) write(x/10);
putchar(x%10+'0');
}
int main() {
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
    return 0;
}
原文