Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145500 徐毅然 拉线开关 C++ Accepted 0 MS 272 KB 312 2026-01-25 15:47:07

Tests(4/4):


Code:

#include <iostream> using namespace std; int main() { int M; cin >> M; // 初始状态为熄灭(0),每次拉动都会切换状态 // 奇数次拉动后为开启(1),偶数次拉动后为关闭(0) int state = M % 2; cout << state << endl; return 0; }