当前位置: 代码迷 >> 综合 >> 742 A - Arpa’s hard exam and Mehrdad’s naive cheat codeforces
  详细解决方案

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

热度:49   发布时间:2024-01-10 18:44:14.0
 #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;}

  相关解决方案