提交记录 7102
| 提交时间 |
评测时间 |
| 2018-12-17 22:37:16 |
2020-08-01 00:59:09 |
/**********************************************************
* Author : EndSaH
* Email : hjxhb1@gmail.com
* Created Time : 2018-12-17 21:07
* FileName : wib.cpp
* Website : https://endsah.cf
* *******************************************************/
#pragma GCC optimize("Ofast,unroll-loops")
#include <sys/mman.h>
#include <unistd.h>
#include <cstdio>
#include <cctype>
char _obuf[17 << 7], _stk[20];
#define read(x)\
(x) = 0, _flag = 1;\
while(!isdigit(*ipos))\
{\
if(*ipos == '-')\
_flag = -1;\
++ipos;\
}\
while((x) = ((x) << 3) + ((x) << 1) + (*ipos++ & 15), isdigit(*ipos));\
(x) *= _flag;
int main()
{
register char *ipos = (char*)mmap(NULL, lseek(0, 0, SEEK_END), PROT_READ, MAP_PRIVATE, 0, 0), *opos = _obuf, *stkpos = _stk;
register unsigned int n, _flag, a, b;
read(n);
while(n--)
{
read(a); read(b);
a += b;
if(a < 0)
*opos++ = '-', a *= -1;
do
{
*++stkpos = a % 10 ^ 48;
a /= 10;
} while(a);
while(stkpos != _stk)
*opos++ = *stkpos--;
*opos++ = '\n';
}
fwrite(_obuf, 1, opos - _obuf, stdout);
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 5.12 us | 12 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-09 00:36:55 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠