- C++
- 2020-08-06 10:15:05 @
#include <iostream>
#include <cstdio>
using namespace std;
typedef long long Num;
typedef unsigned long long Unum;
typedef long double Lfloat;
#define Rint register int
#define It iterator
#define Os ostream
#define Is istream
#define Ifs ifstream
#define Ofs ofstream
#define AK_IOI bfw
template<typename T>/*T: integer type*/
void read(T& num)
{
char ch;int f;num=0;while(1){ch=getchar();if(ch=='-' || (ch>='0'&&ch<='9')) break;} (ch=='-')?(f=-1):(f=1,num+=ch-'0');while(1){ch=getchar();if(!(ch=='-' || (ch>='0'&&ch<='9'))) break; num*=10;num+=ch-'0';} num*=f;
}
int main()
{
return 0;
}
自带主函数 + 快读(int,long long 等均可使用,并支持负数) + 变量类型定义。
2 条评论
-
bfw LV 9 MOD @ 2020-08-13 07:05:13
其余地方都不错,唯独一句话有三个字母打错了
#define AK_IOI bfw
应改为
#define AK_IOI oistream
-
2020-08-10 23:15:42@
Update:有更新
- 1