Posts

Showing posts from February, 2021

A. Petya and Strings | codeforces 112A | iamAvX

Image
                                                          A. Petya and Strings            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.  Input :-   Each of the first two lines contains a bought string. The strings' lengths range from  1  to  100  inclusive. It is guaranteed that the strings are of the same length and also consist of uppercase and lowercase Latin letters. Output:- If the first string is less than the second one, print "-1". If the second string is less than the first one, print "1". If the strings are equal, print "0". Note that the letters' case is not taken into consideration when the strings a

A. Watermelon | Codeforces Beta Round #4 (Div. 2 Only) | iamAvX

                                                                   A.Watermelon                                                                                                       time limit per test:  1 second One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed  w  kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem. Pete and Billy are great fans of even numbers, that's why they want to divide the watermelon in such a way that each of the two parts weighs even number of kilos, at the same time it is not obligatory that the parts are equal. The boys are extremely tired and want to start their meal as soon as possible, that's why you should help them and find out, if they can divide the watermelon in the way they want. For sure, each of them should get a part of positive weight.

What is Git and and Github?

Image
                                        My Github  Link :-  Git & Github Hey guys, we are living in the world of technology and here we often listen many terminology which may  related to any field .Here we going to discuss about a famous terminology "Git & Github".  Perhaps  there will be someone in this world who is involved in technology and software development and does not  know about Git and Github, it will be a wonderful thing for us. People have some other misconception  about Git & Github . GitHub can integrate with common platforms and services such as  Amazon, Google Cloud, and Code Climate. It can highlight syntax in more than 200  different programming languages.Let's start --- Basically Git is open source  distributed version control system.People often confused about distributed  version control system(DVCS).It means that many developer add code in parallel way and it store the  code content and when we perform any changes in code bases on our l