#A. C++-格雷码-二进制码转换成二进制格雷码

    Type: Default 1000ms 256MiB

C++-格雷码-二进制码转换成二进制格雷码

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

Description

二进制码转换成二进制格雷码,其法则是保留二进制码的最高位作为格雷码的最高位,而次高位格雷码为二进制码的高位与次高位相异或,而格雷码其余各位与次高位的求法相类似。

image

Format

Input

Output

Samples



Limitation

1s, 1024KiB for each test case.

二进制码和二进制格雷码的转换

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
13
Start at
2024-9-22 0:00
End at
2024-10-7 0:00
Duration
360 hour(s)
Host
Partic.
1