Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A (大水题)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A (大水题)相关的知识,希望对你有一定的参考价值。

适合初级程序员,只要注意不要遗漏情况就好。

C语言代码如下:

 

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int n;
    scanf("%d",&n);
    if(n==0)
        printf("1\n");
    else if(n%4==1)
        printf("8\n");
    else if(n%4==2)
        printf("4\n");
    else if(n%4==3)
        printf("2\n");
    else if(n%4==0&&n!=0)
        printf("6\n");
    return 0;
}

以上是关于Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A (大水题)的主要内容,如果未能解决你的问题,请参考以下文章

Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A (大水题)

Arpa and an exam about geometry(codeforces 851B)

Arpa’s obvious problem and Mehrdad’s terrible solution 思维

codeforcesB - Arpa’s obvious problem and Mehrdad’s terrible solution 思维

Arpa's weak amphitheater and Mehrdad's valuable Hoses CodeForces - 742D

CF741E Arpa’s abnormal DNA and Mehrdad’s deep interest