About Admin

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

Codeforces Round #473 (Div. 2), problem: (E) Mahmoud and Ehab and the xor-MST Solution In C/C++

By | 2018-04-18T13:34:59+00:00 April 18th, 2018|Categories: C/C++, Programming|Tags: , , , , , , |

#include <stdio.h> long long n,res,a=1; int main() { for (scanf("%I64d",&n);a<n;res+=(n-1)/a*(a-(a>>1)),a<<=1ll); printf("%I64d\n",res); return 0; }

Codeforces Round #473 (Div. 2), problem: (D) Mahmoud and Ehab and another array construction task Solution In C/C++

By | 2018-04-18T13:26:56+00:00 April 18th, 2018|Categories: C/C++, Programming|Tags: , , , , , , |

#include<stdio.h> int vi[10000001]={0}; int main(void) { int n, a, now = 2; int ans; scanf("%d", &n); int flag = 0; int i,j,k; for (i = 1; i <= n; i++) { scanf("%d", &a); ans = now; if (!flag&&a>ans) ans = a; while (vi[ans]) ans++; [...]

Codeforces Round #473 (Div. 2), problem: (C) Mahmoud and Ehab and the wrong algorithm Solution In C/C++

By | 2018-04-18T13:24:16+00:00 April 18th, 2018|Categories: C/C++, Programming|Tags: , , , , , , |

#include<stdio.h> int main(){ int n; scanf("%d",&n); if(n <= 5) printf("-1\n"); else{ printf("1 2\n2 3\n2 4\n"); for(int i = 5;i <= n;i++) printf("1 %d\n",i); } for(int i = 2;i <= n;i++) printf("1 %d\n",i); }

Codeforces Round #473 (Div. 2), problem: (B) Mahmoud and Ehab and the message Solution In C/C++

By | 2018-04-18T13:14:02+00:00 April 18th, 2018|Categories: C/C++, Programming|Tags: , , , , , , , , |

#include<bits/stdc++.h> using namespace std; map<string,int> ms; string str; int arr[100005],temp[100005],mn[100005]; int main() { int n,k,m;cin>>n>>k>>m; for(int i=1;i<=n;i++)cin>>str,ms[str]=i; for(int i=1;i<=n;i++)cin>>arr[i],mn[i]=1e9+7; for(int i=1,j;i<=k;i++) { int x;cin>>x; while(x--)cin>>j,temp[j]=i,mn[i]=min(mn[i],arr[j]); } unsigned long long res=0; while(cin>>str){res+=mn[temp[ms[str]]];} return cout<<res<<"\n",0; }

Codeforces Round #473 (Div. 2), problem: (A) Mahmoud and Ehab and the even-odd game Solution In C/C++

By | 2018-04-18T13:09:29+00:00 April 18th, 2018|Categories: C/C++, Programming|Tags: , , , , , , , , |

#include <stdio.h> int main() { int N; scanf("%d", &N), puts(N&1 ? "Ehab" : "Mahmoud"); }

Amicably Handling Property Settlement

By | 2018-04-18T13:46:54+00:00 April 18th, 2018|Categories: Blog, Guest Post, News|Tags: |

One of the fallouts of separation will be the need to handle the property settlement in a manner that is accepted by both parties. In the event of a Court directed settlement, the effort by both the parties to the settlement proceedings would be [...]

Dispose Green Waste Effortlessly

By | 2018-04-18T09:32:56+00:00 April 18th, 2018|Categories: Blog, Guest Post|Tags: |

Cleaning up the backyard or the garden may sometimes be the most challenging for those who are unprepared. Rather than remaining befuddled, with no idea of how to proceed, it would be a good idea to get going, by making arrangements for a bin. [...]

Xbox One X Tech Review – Read Before You Buy One

By | 2018-04-15T21:08:23+00:00 April 15th, 2018|Categories: Blog, Gaming, Guest Post, What's New|

At $499 (£449 / AU$649), the Xbox One X is that the powerful premium console Microsoft secure us over a year and a 0.5 ago. It delivers 4K HDR at 60 frames per second (at least on one or two of titles) and, as [...]

Did You Know Facebook Is Revealing All Your Data As Well As Your Friends – Courtroom Drama

By | 2018-04-13T13:10:05+00:00 April 13th, 2018|Categories: Blog, Featured, What's New|Tags: , , , , , , |

Facebook Secrets The app permissions that LED to eighty seven million Facebook users’ knowledge being harvested and sold-out to Cambridge Analytica could have additionally allowed access to those users’ inboxes, the corporate confirmed today. This wasn’t achieved by any underhanded means that, exactly, however [...]