Given two logic values p and q (0 or 1) please compute p XOR q.


1 1


hide comments
topsekret: 2018-01-31 20:39:45

I agree with @jitendrakk. It gives a LOAD of confidence

rp_shinya: 2017-03-23 10:24:21

You can check whether two integers are the same or not to take advantage of XOR.

vibhak123: 2017-03-21 17:03:25

what is the meaning of this question?
Can anyone pls tell me

cjycjy: 2016-10-14 16:13:44

I like it very much ;)

jitendrakk: 2016-08-06 23:21:39

This problem gave me confidence. Thank you!

bobjarvis: 2016-02-22 19:57:59

Including test cases with more than two numbers on a line, e.g. "1 0 1 1 0 1", would make it more interesting.

rohit_1729: 2015-10-21 18:49:06

Its belongs to basic levels.

shubham_174: 2015-09-17 22:18:30

Should be moved to tutorials ^_^....

Added by:kuszi
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64
Resource:Thanks to Mostafa 36a2