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

AcWing 657. 选择练习1 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &, ostream &)
 

详细描述

AcWing 657. 选择练习1

在文件 acwing.h345 行定义.

成员函数说明

◆ main()

int acwing::acwing657::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp864 行定义.

864 {
865 int a;
866 int b;
867 int c;
868 int d;
869 cin >> a >> b >> c >> d;
870 if(b > c && d > a && c + d > a + b && c > 0 && d > 0 && a % 2 == 0) {
871 cout << "Valores aceitos";
872 } else {
873 cout << "Valores nao aceitos";
874 }
875 return 0;
876 }

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


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