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,25 @@
#include<cstdio>
int one=0,zero=0;
bool isa(int n)
{
one=zero=0;
do
{
if(n&1) one++;
else zero++;
n>>=1;
}
while(n);
return one>zero;
}
int main()
{
int a=0,b=0;
for(int i=1;i<=1000;i++)
{
if(isa(i)) a++;
else b++;
}
printf("%d %d\n",a,b);
return 0;
}