Toggle navigation
点码成金编程
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Home
=>
ProblemSet
=> 3.3-04:布尔表达式
Problem1189--3.3-04:布尔表达式
1189: 3.3-04:布尔表达式
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
0
Solved:
0
[
Submit
] [
Status
] [ Creator:
][ 参考程序 ]
Description
输入一个布尔表达式,请你输出它的真假值。
比如:( V | V ) & F & ( F | V )
V表示true,F表示false,&表示与,|表示或,!表示非。
上式的结果是F
Input
输入一个布尔表达式,表达式中可以有空格,总长度不超过1000
Output
如果表达式为真,输出"V",否则出来"F"
Sample Input
Copy
( V | V ) & F & ( F| V)
Sample Output
Copy
F
Source/Category
数据结构
栈