Codeforces Round #383 (Div. 2), problem: (A) Arpa’s hard exam and Mehrdad’s naive cheat Solution in C/C++ ✎ Admin 977 December 17, 2016 Codeforces Round #383 (Div. 2), problem: (A) Arpa’s hard exam and Mehrdad’s naive cheat Solution in C/C++ FacebookXPinterestWhatsApp #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; } Why Everyone is Obsessed... Shopping May 25, 2026 Are... Read more Why Everyone is Obsessed... Shopping May 25, 2026 Are... Read more Oakley Brings Back the... Lifestyle May 25, 2026 Oakley is renowned for pushing the boundaries of eyewear... Read more Why Everyone is Obsessed... Shopping May 24, 2026 Are... Read more Why Everyone is Obsessed... Shopping May 24, 2026 Are... Read more Kathy Griffin Shares She... Entertainment May 24, 2026 Comedian Kathy Griffin has never been one to shy... Read more Why Everyone is Obsessed with the Real Techniques Makeup Sponge Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Heavy Duty Duck Tape Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Oakley Brings Back the FatCat from the Archive Oakley is renowned for pushing the boundaries of eyewear design, and now they are digging deep into their historical vault to bring back a... Why Everyone is Obsessed with the Reusable Water Balloon Set Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Emergency Keychain Power Bank Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Kathy Griffin Shares She Was Hospitalized Over Complications From Colonoscopy Comedian Kathy Griffin has never been one to shy away from sharing the raw, unfiltered details of her life. In her latest health update,... Why Everyone is Obsessed with the Mini Handheld Pocket Fan Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Electric Power Scrubber Kit Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Mikie Sherrill wants Nets back in New Jersey, but team ‘perfectly happy in Brooklyn’ The political arena and the sports world have collided once again in the tri-state area. New Jersey's newly elected Governor, Mikie Sherrill, has raised... Previous articleCodeforces Round #382 (Div. 1), problem: (E) Chess Championship Solution in C/C++Next articleCodeforces Round #383 (Div. 2), problem: (B) Arpa’s obvious problem and Mehrdad’s terrible solution , Solution in C/C++