提交记录 5708


用户 题目 状态 得分 用时 内存 语言 代码长度
codesonic 1000i. 【传统题】 A+B Problem Wrong Answer 0 31.54 us 40 KB C++ 1.48 KB
提交时间 评测时间
2018-09-01 23:29:49 2020-08-01 00:21:44
#include <cstdio>

using namespace std;
struct io
{
    char ibuf[1 << 23] , * s;
    int a[24];
    io()
    {
        fread( s = ibuf , 1 , 1 << 23 , stdin );
    }
    inline void read( char * q )
    {
        while( * s < 48 ) s++;
        while( * s > 32 ) * q++ = * s++;
        * q = 0;
    }
    inline int read()
    {
        register int u = 0;
        while( * s < 48 ) s++;
        while( * s > 32 )
            u = u * 10 + * s++ - 48;
        return u;
    }
} ip;
namespace fib{char b[300000]= {},*f=b;}
#define ll int
#define gc ((*fib::f)?(*(fib ::f++)):(fgets(fib::b,sizeof(fib::b),stdin)?(fib::f=fib::b,*(fib::f++)):-1))
inline void in(ll &x){x=0;char c;bool f=0;while((c=gc)>'9'||c<'0')if(c=='-')f=!f;x=c-48;while((c=gc)<='9'&&c>='0')x=x*10+c-48;if(f)x=-x;}
namespace fob{char b[300000]= {},*f=b,*g=b+300000-2;}
#define pob (fwrite(fob::b,sizeof(char),fob::f-fob::b,stdout),fob::f=fob::b,0)
#define pc(x) (*(fob::f++)=(x),(fob::f==fob::g)?pob:0)
struct foce{~foce(){pob;fflush(stdout);}} _foce;
namespace ib{char b[100];}
inline void out(ll x){if(x==0){pc(48);return;}if(x<0){pc('-');x=-x;}char *s=ib::b;while(x) *(++s)=x%10,x/=10;while(s!=ib::b) pc((*(s--))+48);}
inline void outn(ll x){out(x);pc('\n');}
inline void swap(ll &x,ll &y){ll t=x;x=y;y=t;}
inline ll jdz(ll x){return x>0?x:-x;}
inline ll max(ll x,ll y){return x>y?x:y;}
inline ll min(ll x,ll y){return x<y?x:y;}
int n,a,b;
int main() {
	n=ip.read();
	while(n--){
		a=ip.read();
		b=ip.read();
		printf("%d",a+b);
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #131.54 us40 KBWrong AnswerScore: 0


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