提交记录 6855


用户 题目 状态 得分 用时 内存 语言 代码长度
TowardstheSun noip17a. 【NOIP2017】小凯的疑惑 Accepted 100 6.96 us 12 KB C++11 757 B
提交时间 评测时间
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);
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #15.59 us12 KBAcceptedScore: 5

Testcase #26.96 us12 KBAcceptedScore: 5

Testcase #35.98 us12 KBAcceptedScore: 5

Testcase #46.79 us12 KBAcceptedScore: 5

Testcase #55.17 us12 KBAcceptedScore: 5

Testcase #65.64 us12 KBAcceptedScore: 5

Testcase #75.43 us12 KBAcceptedScore: 5

Testcase #84.57 us12 KBAcceptedScore: 5

Testcase #95.19 us12 KBAcceptedScore: 5

Testcase #104.93 us12 KBAcceptedScore: 5

Testcase #114.53 us12 KBAcceptedScore: 5

Testcase #124.62 us12 KBAcceptedScore: 5

Testcase #135.25 us12 KBAcceptedScore: 5

Testcase #144.76 us12 KBAcceptedScore: 5

Testcase #155.18 us12 KBAcceptedScore: 5

Testcase #164.62 us12 KBAcceptedScore: 5

Testcase #175.38 us12 KBAcceptedScore: 5

Testcase #185.32 us12 KBAcceptedScore: 5

Testcase #194.95 us12 KBAcceptedScore: 5

Testcase #204.78 us12 KBAcceptedScore: 5


Judge Duck Online | 评测鸭在线
Server Time: 2020-10-23 14:05:49 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用