您的位置:首页 > Web前端

CF 260 B. Fedya and Maths

2015-07-07 10:36 363 查看
链接

提示:找规律

[code]#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
const int maxn=1e5+5;
char s[maxn];
int main()
{
   cin>>s;
   int len=strlen(s);
   int sum=(s[len-2]-'0')*10+(s[len-1]-'0');
   if(sum % 4 == 0)
     puts("4");
   else
     puts("0");
   return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: