<PREV Problem:
NEXT>
Solved by 590 users: ...
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 
 < 

Conjunction and disjunction [Educational]

Time limit = 1 second(s)

Calculate disjunction or conjunction of 2 boolean variables

^ is conjunction (AND)

v is disjunction (OR)

Input.

2 logical variables (0 or 1), symbol "v" or "^" between them without spaces

Output.

1 number (0 or 1) — result.

Input#1
1^0
Output#1
0
Input#2
1v0
Output#2
1

Author:
Simple educational problem. Tests and description by Dmitry Podlesnykh
07 September 2009

<PREV | Problem set | Search related messages | NEXT>


© acm.mipt DevGroup
The page was generated in 200ms

SW soft NIX
ID = 54.80.60.91