提交记录 28756
| 提交时间 |
评测时间 |
| 2025-12-16 15:54:30 |
2025-12-16 15:54:32 |
#include<bits/stdc++.h>
#define LL long long
#ifdef _WIN32
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#endif
using namespace std;
void FAST_OS(bool p){
if(p){
ios::sync_with_stdio(0);
cin.tie(nullptr);
}
}
int read(){
bool f = false;int x = 0;char c = 'x';
while(!isdigit(c)){
c = getchar_unlocked();
if(c == '-'){
f = !f;
}
}
while(isdigit(c)){
x = x * 10 + (c ^ 48);
c = getchar_unlocked();
}
return f ? -x : x;
}
static char c[25];
void print(int x){
unsigned int s = x;
if(x < 0){
s = -s;
putchar_unlocked('-');
}
if(x == 0){
putchar_unlocked('0');
return;
}
int l = 0;
while(s){
c[++l] = s % 10 + '0';
s /= 10;
}
while(l > 0){
putchar_unlocked(c[l]);
l--;
}
}
signed main(){
FAST_OS(0);
int n = read();
while(n--){
int a = read(),b=read();print(a+b);putchar_unlocked('\n');
}
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 55.94 us | 36 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-12-26 03:25:26 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠