提交记录 19798
提交时间 |
评测时间 |
2023-08-02 15:32:48 |
2023-08-02 15:32:49 |
#include<bits/stdc++.h>
#define LL long long
#define LLL __int128
#define ldb long double
using namespace std;
int plen,ptop,pstk[40];
char rdc[1<<20],out[1<<20],*rS,*rT;
#define gc() (rS==rT?rT=(rS=rdc)+fread(rdc,1,1<<20,stdin),(rS==rT?EOF:*rS++):*rS++)
#define pc(x) out[plen++]=(x)
#define flush() fwrite(out,1,plen,stdout),plen=0
template<class T=int>inline T read(){
T x=0;char ch;bool f=1;
while(!isdigit(ch=gc()))if(ch=='-')f^=1;
do x=(x<<1)+(x<<3)+(ch^48);while(isdigit(ch=gc()));
return f?x:-x;
}
inline int read(char* const s){
char *t=s,ch;
while(!isgraph(ch=gc()));
do(*(t++))=ch;while(isgraph(ch=gc()));
return (*t)='\000',t-s;
}
template<class T=int>inline void write(T x){
if(plen>=1000000)flush();
if(!x)return pc('0'),void();
if(x<0)pc('-'),x=-x;
for(;x;x/=10)pstk[++ptop]=x%10;
while(ptop)pc(pstk[ptop--]+'0');
}
inline void write(const char*s){
if(plen>=1000000)flush();
for(int i=0;(*(s+i))!='\000';pc(*(s+(i++))));
}
inline void write(char*const s){
if(plen>=1000000)flush();
for(int i=0;(*(s+i))!='\000';pc(*(s+(i++))));
}
typedef pair<int,int> PII;
signed main(){
for(int T=read();T--;write(read()+read()),pc('\n'));
return flush(),0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 42.25 us | 44 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-14 15:45:54 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠