题解 | #jyq跳格子#
jyq跳格子
https://ac.nowcoder.com/acm/contest/19304/G
#include<iostream> using namespace std; int main() { int a=0; cin>>a; if((a-1)%2==0) cout<<a; else cout<<"-1"; }
jyq跳格子
https://ac.nowcoder.com/acm/contest/19304/G
#include<iostream> using namespace std; int main() { int a=0; cin>>a; if((a-1)%2==0) cout<<a; else cout<<"-1"; }
相关推荐