B. Petya and Square time limit per test:2 secondsmemory limit per test: 256 megabytesinput/output standard input /standard output Little Petya loves playing with squares. Mum bought him a square 2n × 2n in size. Petya marked a cell inside the square and now he is solving the following task. The task is to draw a broken line that would go along the grid lines and that would cut the square into two equal parts. The cutting line should not have any common points with the marked cell and the resulting two parts should be…
Author: Shashank Shree Neupane
112A – Petya and Strings : Codeforces Solution
A. Petya and Strings time limit per test:2 secondsmemory limit per test:256 megabytesinput/output :standard input /standard output Little Petya loves presents. His mum bought him two strings of the same size for his birthday. The strings consist of uppercase and lowercase Latin letters. Now Petya wants to compare those two strings lexicographically. The letters’ case does not matter, that is an uppercase letter is considered equivalent to the corresponding lowercase letter. Help Petya perform the comparison. InputEach of the first two lines contains a bought string. The strings’ lengths range…
158A – Next Round : Codeforces Solution
Question : A. Next Round time limit per test :3 secondsmemory limit per test: 256 megabytesinput/output : standard input / standard output “Contestant who earns a score equal to or greater than the k-th place finisher’s score will advance to the next round, as long as the contestant earns a positive score…” — an excerpt from contest rules. A total of n participants took part in the contest (n ≥ k), and you already know their scores. Calculate how many participants will advance to the next round. Input The first line of the input contains…
How to install PHP 8 on Mac OS
First install Homebrew Install stable version of php using Homebrew This will start updating Homebrew – Updating tap and Formulae.The following dependencies will normally be installed through the command above. If your differs, the dependencies will install when it is necessary. apr, apr-util, argon2, aspell, m4, autoconf, brotli, gettext, libunistring, libidn2, libmetalink, libssh2, c-ares, jemalloc, libev, nghttp2, openldap, rtmpdump, zstd, curl, libtool, unixodbc, freetds, libpng, freetype, fontconfig, jpeg, libtiff, webp, gd, libffi, glib, gmp, icu4c, krb5, libpq, libsodium, libzip, oniguruma, pcre2 and tidy-html5 After all dependencies installation To enable PHP…
Movies while you are at home
As a precaution for COVID 19, its wise to stay at home and for that here is the list of English Based Movies to watch while you self-quarantine. War movies:1-Atonement (2007)2-Saving private Ryan (1998)3-full metal jacket (1987)4-Hacksaw ridge (2016)5-Valkyrie (2008)6-war horse (2011)7-Enemy at the gates (2001)8-The thin red line (1998)9-The English patient (1996)10-Downfall (2004) Western movies:1-The good the bad and the ugly (1966)2-once upon a time in the west (1968)3-The ballad of buster Scruggs (2018)4-Dances with wolves (1990)5-Butch Cassidy and the Sundance kid (1969)6-The searchers (1956)7-The man who shot liberty…
Corona Virus Updates and Alerts in Nepal
There has been information relating to corona virus from authorized agencies like WHO and Ministry of Health. All of these information has been summarized on a single place. Here is the link for you to follow. Corona Virus Updates and Information in Nepal
Disciplinary Action Calls : Minister Keshab Sthapit Sacked by CM
Chief Minister Dor Mani Poudel Sacked Minister Keshab Sthapit and took the Ministry responsibility on himself. Last Wednesday on the Cabinet CM Poudel and Minister Sthapit had disputes and today was the outcome – SACKED. Minister Keshab Sthapit was very straight forward person. He just speaks whatever is in his mind, regardless of anything. This could be understand clearly when he spoke his deed to spray red color on the then recently widowed and current President of Nepal, Hon. Bidhya Devi Bhandari as an Election Strategy. After he was sacked…
Post war and Conflicts: Rebuilding States and Communities — Case Study : Nepal
A Challenge every country faces is to rebuild states and communities after war and conflicts. The newly formed government will not be on a proper track to carry out the process of rebuilding states whereas the perception of people takes time to alter. We have seen such scenario in various countries and similar has happened in Nepal. Nepal had ten years long Maoist insurgency that killed thousands of people. It has not been easy for Nepal for Post war and conflicts rebuilding. After the conflict with Maoist was settled signing…