delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#include<cstdio>
int os(int n)
{
static int ans;
ans=0;
while(n>0)
{
if(n&1) ans++;
n/=2;
}
return ans;
}
int main()
{
int a,b;
while(scanf("%d",&a),a!=0)
{
b=a+1;
while(os(a)!=os(b)) b++;
printf("%d\n",b);
}
return 0;
}