Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
166634 HSbF6(hzlz) 二进制分类 C++ Compile Error 0 0 MS 0 KB 414 2024-08-19 15:03:34

Tests(0/0):


#include <bits/stdc++.h> using namespace std; int main() { int j,a,b,mod,m=0,n=0,x,y; cin>>x>>y; for(x=x; x<=y; x++) { j=x,a=0,b=0; while(j) { mod=j%2; j>>=1; if(mod) a++; else b++; } if(a>b) ta++; else tb++; } cout<<m<<' '<<n; return 0; }


Judgement Protocol: