Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
41484 Xiyou 拉线开关 C++ 通过 0 MS 256 KB 245 2024-02-21 09:51:54

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int m; cin>>m; bool f=false; for(int i=0;i<m;i++){ if(f==false){ f=true; }else{ f=false; } } if(f==true){ cout<<1; }else{ cout<<0; } return 0; }


测评信息: