Codeforces Round #383 (Div. 2), problem: (A) Arpa’s hard exam and Mehrdad’s naive cheat Solution in C/C++

#include<stdio.h>
int main(){int n, a[]={6,8,4,2};
scanf("%d",&n);
if(n)
printf("\n%d",a[n%4]);
else
printf("\n1");
return 0; }
(Visited 147 times, 1 visits today)
By | 2017-04-07T22:11:48+00:00 December 17th, 2016|Categories: C/C++, Programming|0 Comments

About the Author:

Leave A Comment