位运算能过?
查看原帖
位运算能过?
1389892
WuDiFengShu12345楼主2024/8/13 16:01
#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
    cin>>n;
    if(n&1) cout<<"odd";
    else cout<<"even";
    return 0;
}

位运算能过!按位与就可以耶。

本人刚发现

2024/8/13 16:01
加载中...