Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41500 | lmz120809 | 拉线开关 | C++ | Accepted | 1 MS | 244 KB | 168 | 2024-02-21 10:52:58 |
#include<bits/stdc++.h> using namespace std; int main() { int m,sum=0,k=0; cin>>m; if(m%2==1){ k=1; } else{ k=0; } cout<<k<<endl; return 0; }