Codeforces Round #380 (Div. 1, Rated, Based on Technocup 2017 – Elimination Round 2), problem: (C) Subordinates Solution in C/C++

By |2017-04-07T22:11:49+00:00November 21st, 2016|Categories: C/C++, Programming|Tags: , , , , , , , , |

Hi Guys , I Just Tried to solve the Subordinates problem , hope you might like it , please share if you've any better code .   #include<stdio.h> #include<stdlib.h> typedef unsigned u; u Z[222222],R[222222],C[222222]; int main() { u n,s,i,k,fz=0,fnz=0,x,a=-1u; scanf("%u%u",&n,&s);--s; for(i=-1;++i<n;) { scanf("%u",&k); if(!k&&i!=s)++fz; [...]