XORSUM67
CodeChefOpen on judge ↗
Given 4 integers A,B,C,D , find the value that is given by the following pseudo code: for(int i=A;i<=B;i++){ for(int j=C;j<=D;j++){ ans = (ans + i^j)%(1000000007); } } where '^' represents the bitwise xor operation. ###Input: - First and the only line will contain four space separated numbers A,B,C,D respectively. ###Output: OutPut the value that we
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start