problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
luogu::P5710类 参考

洛谷 P5710 【深基3.例2】数的性质 更多...

#include <luogu.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

洛谷 P5710 【深基3.例2】数的性质

在文件 luogu.h128 行定义.

成员函数说明

◆ main()

int luogu::P5710::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp346 行定义.

346 {
347 unsigned short x;
348 cin >> x;
349 const bool b1 = x % 2 == 0;
350 const bool b2 = x > 4 && x <= 12;
351 cout << static_cast<int>(b1 && b2) << " " << static_cast<int>(b1 || b2) << " " << (b1 xor b2) << " " << static_cast<int>(!b1 && !b2);
352 return 0;
353 }

被这些函数引用 luogu::TEST().


该类的文档由以下文件生成: