#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[n]<<endl;}}return 0;}
详细解决方案
742 A - Arpa’s hard exam and Mehrdad’s naive cheat codeforces
热度:49 发布时间:2024-01-10 18:44:14.0
相关解决方案
- stop c0000221 Unknown Hard Error解决方法
- separate physical hard disc?解决方案
- separate physical hard disc?该如何处理
- Codeforces Round #166 (Div. 二) D - Good Substrings
- Codeforces Round #165 (Div. 二)(完全)
- Codeforces Round #166 (Div. 二)
- Codeforces Round #167 (Div. 二 && Div.1)
- 前端助理工程师必备 Cheat Sheet
- Learn Python The Hard Way学习(52) - 开始您的web游戏
- Restart hard,if we can't get back,该怎么处理
- [分享]Pass the Exam Of MCSA 070-461 Querying Microsoft SQL Server 2012解决办法
- 求 naive bayes 算法代码解决办法
- Codeforces Round #282 (Div. 二)-A. Digital Counter
- Codeforces Round #248 (Div. 一)——Nanami's Digital Board
- Codeforces 10C Digital Root 法令题
- Tutorial CodeForces Round 289 (Div.2) (Second Winter Computer Camp Selection 2015) 例题
- codeforces 492D Vanya and Computer Game(额。数学题?水题吧)
- stop c0000221 Unknown Hard Error,该如何处理
- separate physical hard disc?该如何解决
- codeforces #199 C. Cupboard and Balloons 例题
- Codeforces Round #199 (Div. 二) C. Cupboard and Balloons
- Codeforces Round #199 (Div. 二) C. Cupboard and Balloons
- 阅览《LEARNING HARD C#学习笔记》知识点总结与摘要五
- 阅览《LEARNING HARD C#学习笔记》知识点总结与摘要四
- 翻阅《LEARNING HARD C#学习笔记》知识点总结与摘要三
- 阅览《LEARNING HARD C#学习笔记》知识点总结与摘要二
- 翻阅《LEARNING HARD C#学习笔记》知识点总结与摘要一
- Educational Codeforces Round 77 C. Infinite Fence
- codeforces 1272B Snow Walking Robot
- GD32 RT_Thread Nano ---hard fault on thread