于墨轩 • 27天前
#include <iostream> using namespace std; int main() { int M; cin >> M; cout << (M % 2 == 1 ? 1 : 0) << endl; return 0; } #include <iostream> using namespace std; int main() { int M; cin >> M; cout << (M & 1) << endl; return 0;
评论:
666