#18. 判断数组是否包含2或3

    ID: 18 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatArray-1gesp1条件结构

判断数组是否包含2或3

Check for 2 or 3 in Array

Background

Dawei is playing a simple number game. He has an integer array of length 2 and needs to quickly determine if it contains specific numbers.

Problem Description

Given an integer array of length 2, return true if it contains the number 2 or the number 3.

Input Format

Input is given from standard input in the following format.

Two integers aa, bb, representing the two elements of the array.

Output Format

Output is printed to standard output in the following format.

Output true if the array contains 2 or 3; otherwise, output false.

Sample

2 5
true
4 3
true
4 5
false

Sample Explanation

Sample 1: The array [2, 5] contains the number 2, so true is output. Sample 2: The array [4, 3] contains the number 3, so true is output. Sample 3: The array [4, 5] contains neither the number 2 nor the number 3, so false is output.

Constraints

Time limit: 1 second, Memory limit: 1024 KiB for each test case.