#include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string x;
cin >> x;
cout << (x.back() % 2 ? -1 : 1);
//back() 函数返回当前vector最末一个元素的引用。
}
牛客网月赛 F.Fool Problem(找规律题)
猜你喜欢
转载自blog.csdn.net/king9666/article/details/104336349
今日推荐
周排行