Sponsors

Tag: C language

Codeforces Round #382 (Div....

#include<stdio.h> main() { long long int n,i,j,c=0,a,b,k; scanf("%I64d",&n); a=1; b=1; k=a+b; while(k<=n) { c++; ...

Codeforces Round #382 (Div....

  #include<stdio.h> int b,d; int main(){ int i,s,n,k,t; scanf("%d%d",&n,&k); char x; for(i=1;i<=n;i++){ scanf(" %c",&x); if(x=='G')s=i; if(x=='T')t=i; if(x=='#')b=1; } for(i=s;i<=n;i+=k){ if(b) break; d=1; } for(i=s;i>=1;i-=k){ if(b) break; d=1; } if(d) printf("YES"); else printf("NO"); }

Codeforces Round #381 (Div....

Hi guys , I just solved the fifth problem...

Codeforces Round #381 (Div....

Hi guys , I just solved the third problem...

Codeforces Round #381 (Div....

Hi guys , I just solved the second problem...

Codeforces Round #381 (Div....

Hi guys , I just solved the first problem...

Codeforces Round #380 (Div....

Hi Guys , I Just Tried to solve the...

Codeforces Round #380 (Div....

Hi Guys , I Just Tried to solve the...

Codeforces Round #380 (Div....

Hi Guys , I Just Tried to solve the...

Codeforces Round #380 (Div....

Hi Guys , I Just Tried to solve the...

Codeforces Round #380 (Div....

Hi Guys , I Just Tried to solve the...

Anagram Checking Between Two...

Hello guys! This is a code in C to...

Advertisement

spot_img