提交记录 11467
提交时间 |
评测时间 |
2020-01-15 22:04:32 |
2020-08-01 02:43:45 |
#include <stdio.h>
#define BUFSIZE 16384
int get_int() {
static char buf[BUFSIZE];
static char *bufnow = buf;
static char *bufend = buf;
int s = 0;
int flag = 0;
if (bufnow == bufend) {
bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
bufnow = buf;
}
int c = *bufnow++;
while ((c < '0' || c > '9') && c != '-') {
if (bufnow == bufend) {
bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
bufnow = buf;
}
c = *bufnow++;
}
if (c == '-') {
flag = 1;
if (bufnow == bufend) {
bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
bufnow = buf;
}
c = *bufnow++;
}
while (c >= '0' && c <= '9') {
s = s * 10 + c - '0';
if (bufnow == bufend) {
bufend = fread(buf, 1, BUFSIZE, stdin) + buf;
bufnow = buf;
}
c = *bufnow++;
}
return flag ? -s : s;
}
int main() {
int n = get_int();
for (int i = 1; i <= n; i++) {
int shu1 = get_int();
int shu2 = get_int();
printf("%d\n", shu1 + shu2);
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 35.66 us | 16 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 23:18:55 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠