U E D R , A S I H C RSS

AnEasyProblem/정진경 (rev. 1.1)

An Easy Problem/정진경

Describe AnEasyProblem/정진경 here

Source Code

n,a,b,c;main(){for(;a=scanf("%d",&n),n;){for(;!(a&n);a*=2);for(b=a;a&n;n^=a,a*=2);for(n|=a,c=1;!(a&b*2);b*=2,c*=2)n|=c;printf("%d\n",n);}}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:28
Processing time 0.0197 sec