提交记录 4715


用户 题目 状态 得分 用时 内存 语言 代码长度
mikeliu 1000i. 【传统题】 A+B Problem Compile Error 0 0 ns 0 KB C 760 B
提交时间 评测时间
2018-07-30 20:50:37 2020-07-31 23:11:05
#include <stdio.h>
#define RG register
#define IV inline void
#define TP template<typename T>
#define gc          if(++pi==iend)fread(pi=ibuf,1,SZ,stdin)
#define pc(C) *po=C;if(++po==oend)fwrite(po=obuf,1,SZ,stdout)
const int SZ=1<<20;
char ibuf[SZ],obuf[SZ],*pi=ibuf+SZ-1,*po=obuf;
const char*iend=ibuf+SZ,*oend=obuf+SZ;
TP IV in(RG T&x){
    gc;while(*pi<'-')gc;
    x=*pi&15;gc;
    while(*pi>'-'){x*=10;x+=*pi&15;gc;}
}
TP IV iex(RG T&x){
    gc;while(*pi<'-')gc;
    RG bool f=*pi=='-';if(f)gc;
    x=*pi&15;gc;
    while(*pi>'-'){x*=10;x+=*pi&15;gc;}
    if(f)x=-x;
}
TP IV out(RG T x){
    if(x>9)out(x/10);
    pc(x%10|'0');
}
TP IV oex(RG T x){
    if(x<0){pc('-');x=-x;}
    out(x);
}

int main() {
	int a=in(),b=in();
        out(a+b);
	return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-13 03:16:08 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠