#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)
- Learn Python The Hard Way学习(52) - 开始您的web游戏
- Restart hard,if we can't get back,该怎么处理
- 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 Round #199 (Div. 二) C. Cupboard and Balloons
- Codeforces Round #199 (Div. 二) C. Cupboard and Balloons
- 阅览《LEARNING HARD C#学习笔记》知识点总结与摘要二
- codeforces 721B B. Passwords -- by lethalboyd
- Codeforces Round #464 (Div. 2)A. Love Triangle
- Educational Codeforces Round 63 (Rated for Div. 2) (A,B,C)
- Codeforces Round #551 (Div. 2) (A,B,C)
- (模拟)A. Vasya and Book—— Educational Codeforces Round 55 (Rated for Div. 2)
- (模拟题)B. Vova and Trophies—— Educational Codeforces Round 55 (Rated for Div. 2)
- Educational Codeforces Round 51 (Rated for Div. 2)
- CodeForces - 55D (数位dp)
- Codeforces Round #498 (Div. 3)F - Xor-Paths(dfs+中间相遇算法)
- Codeforces Round #498 (Div. 3) D - Two Strings Swaps
- Codeforces Round #493 (Div. 2) C - Convert to Ones