About Admin

This author has not yet filled in any details.
So far Admin has created 631 blog entries.

Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (E) Bash Plays with Functions Solution in C/C++

By |2017-04-07T22:10:19+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <cstdio> const int mod = 1000000007; int a[1000010][21]; int b[1000010]; int main() { int q, r, n; a[0][0] = 1; for (int j = 1; j < 21; j++) { a[0][j] = 2; } for (int i = 1; i < 1000010; i++) [...]

Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (D) Felicity’s Big Secret Revealed Solution in C/C++

By |2017-04-07T22:10:19+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<stdio.h> #define m 1000000007u typedef unsigned u; u D[76][1u<<20],S[1u<<20]; char C[76]; u V[76][76]; int main() { u n,i,j,k,N=1u<<20,b,r=0; scanf("%u",&n); scanf("%s",C); for(i=-1;++i<n;)for(j=i-1,k=0;++j<n;) { k=k<<1|(C[j]=='1'); V[i][j]=k; } for(i=-1;++i<=n;)D[i][0]=1; for(i=-1;++i<n;) { for(j=i-1;++j<n;) { if(!V[i][j])continue; if(V[i][j]>20)break; b=1u<<(V[i][j]-1); for(k=-1;++k<N;) if((D[j+1][k|b]+=D[i][k])>=m)D[j+1][k|b]-=m; } } for(i=-1;++i<=n;) { for(j=1;j<N;j=j<<1|1) if((r+=D[i][j])>=m)r-=m; } printf("%u\n",r); return [...]

Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (C) Felicity is Coming! Solution in C/C++

By |2017-04-07T22:10:20+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include<stdio.h> #include<stdlib.h> #define m 1000000007u typedef long long unsigned llu; typedef unsigned u; int C(const void*x,const void*y){return*(u*)x-*(u*)y;} int D(const void*x,const void*y) { if(*(llu*)x>*(llu*)y)return 1; if(*(llu*)x<*(llu*)y)return-1; return 0; } llu H[1111111],P[1111111]; u F[1111111],Q[1111111]; int main() { u t,q,n,i,j,r=1; for(F[i=0]=1;++i<1111111;)F[i]=i*(llu)F[i-1]%m; for(P[i=0]=1;++i<1111111;)P[i]=m*P[i-1]+1; for(scanf("%u%u",&t,&n);t--;) { scanf("%u",&q); for(i=-1;++i<q;)scanf("%u",Q+i); qsort(Q,q,sizeof(u),C);Q[q]=-1u; [...]

Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (B) Bash’s Big Day Solution in C/C++

By |2017-04-07T22:10:20+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

#include <stdio.h> int main(){ int n; scanf("%d",&n); int i, temp, max=1, freq[100001]={0}, ans=1, j; for(i=0;i<n;i++){ scanf("%d",&temp); freq[temp]++; if(temp>max){ max=temp; } } for(i=2; i<=max; ++i){ temp=0; for(j=i; j<=max; j+=i){ temp+=freq[j]; } if(temp>ans) ans=temp; } printf("%d",ans); return 0; }

Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined), problem: (A) Gotta Catch Em’ All! Solution in C/C++

By |2017-04-07T22:10:20+00:00January 16th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , , |

#include<stdio.h> #include<string.h> int main(){ int i,j; char ch; char a[100005]; int b[256]={0}; while((ch=getchar())!=EOF){ b[ch]++; } char *d="ulbasr"; int min=b['B']; b['u']=b['u']/2; b['a']=b['a']/2; for(i=0;i<strlen(d);i++){ if(min>b[d[i]]){ min=b[d[i]]; } } printf("%d",min); }

Rumors About iPhone 8 (2017) -Introducing to 3D Photography

By |2017-02-16T19:44:19+00:00January 16th, 2017|Categories: Articles, Blog, Special, What's New|Tags: , , , |

2017 will take Apple to the 10th anniversary of the iPhone and Apple has something big planned to celebrate the event. We are more than half a year away from the launch of the iPhone 8, but as of Apple's big and innovative plans [...]

Beginners Tips for First Person Shooting Game Say : Counter Strike Global Offense

By |2017-02-16T19:41:49+00:00January 16th, 2017|Categories: Articles, Blog, Gaming, Life Hacks, Special|Tags: , , , |

How to be better at Counter-Strike Global Offensive   Counter Strike: Global offensive is arguably the most played FPS or first person shooting game in the world. It was released in August 2012 by steam corp. for windows, PlayStation, Xbox 360. The game currently [...]

Some Tips Towards Beginners to Exercise Regularly

By |2017-02-16T18:23:48+00:00January 16th, 2017|Categories: Articles, Blog, Life Hacks, Special|Tags: , , |

I know you guys are all pumped up about having a great physique and everything. However, there are a few things that you might want to keep in mind in order to be safe and don’t make the same mistakes that every beginner make [...]

Minecraft : Creativity Is The Only Limit

By |2017-02-16T18:24:07+00:00January 7th, 2017|Categories: Articles, Blog, Game, Gaming, Special|Tags: , , |

It's time to show your creativity. Not in our exam or in practical life. Build your own world with your creativity in Minecraft. It's a game of blocks. remove blocks and place it where you want to and create what you want to. You [...]

Signs of Jinn

By |2017-02-16T18:24:18+00:00January 7th, 2017|Categories: Blog, Special|Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , |

Dabbe (2006) movie 388@0 = dabbe The name or word Dabbe means a moving creature or animal that walks or moves with complexity. Debbe is a verb that means walking with difficulty. It is used for ants, insects, animals and refer to [...]