提交记录 6855
提交时间 |
评测时间 |
2018-11-09 15:30:20 |
2020-08-01 00:50:55 |
#pragma GCC optimize("Ofast,unroll-loops")
#include <stdio.h>
#include <ctype.h>
char _I_Buffer[26],_O_Buffer[26],*_I_pos = _I_Buffer,*_O_pos = _O_Buffer;
inline int get()
{
register int res = 0;
register bool k = 1;
while (!isdigit(*_I_pos))
if (*_I_pos++ == '-')k = 0;
do res = (res << 3) + (res << 1), res += (*_I_pos++) & 15;while (isdigit(*_I_pos));
return k ? res : -res;
}
inline void put(register long long n)
{
static char _buf[20];
register char* _pos(_buf);
if (n < 0) {*_O_pos++ = '-';n = -n;}
do *_pos++ = 48 + n % 10;while (n /= 10);
while (_pos != _buf)*_O_pos++ = *--_pos;
}
int main()
{
fread(_I_Buffer, 1, 26, stdin);
register int a = get(),b = get();
put(1ll*a*b-a-b);
fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout);
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 5.59 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #2 | 6.96 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #3 | 5.98 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #4 | 6.79 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #5 | 5.17 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #6 | 5.64 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #7 | 5.43 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #8 | 4.57 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #9 | 5.19 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #10 | 4.93 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #11 | 4.53 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #12 | 4.62 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #13 | 5.25 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #14 | 4.76 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #15 | 5.18 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #16 | 4.62 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #17 | 5.38 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #18 | 5.32 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #19 | 4.95 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Testcase #20 | 4.78 us | 12 KB | Accepted | Score: 5 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-12-05 09:38:00 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠