您的位置:首页 > 大数据 > 人工智能

742 A - Arpa’s hard exam and Mehrdad’s naive cheat codeforces

2016-12-27 22:13 513 查看
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,num[10];
cin>>n;
num[1]=8;num[2]=4;num[3]=2;num[4]=6;
if(n==0)
{
cout<<1<<endl;
}
else
{
n%=4;
if(n==0)
{
cout<<num[4]<<endl;
}
else
{
cout<<num
<<endl;
}
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐