Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int x,y,z,cnt=0;
cin>>x>>y>>z;
int a=__builtin_popcount(x),b=__builtin_popcount(y),c=__builtin_popcount(z);
if(a!=b)cnt++;
if(b!=c)cnt++;
if(c!=a)cnt++;
cout<<cnt<<endl;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1232 Parity
- Contest
- LUCC Presents Intra LU Junior Programming Contest - Replay
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-02 16:51:32
- Judged At
- 2025-09-02 16:51:32
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 520.0 KiB