https://i1.wp.com/eblogarithm.com/wp-content/uploads/2016/12/Codeforces-Round-383-Div-2-problem-A-Arpas-hard-exam-and-Mehrdads-naive-cheat-Solution-in-CC.png?fit=640%2C360

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 127 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: