Posts

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

5 Way to Earn Money online platform and through programming

Image
Hello guys, we are living in the digital world.There are plenty way to earn money in this  digital era rather than to move traditional job.First of all we should focus on our skill i.e  what can you do? Skill is one of the major role to play to earn money.We all know that  Technology is changing day by day and becoming more and more becoming a part of our  everyday life.I mean to say that the people who have no singal bit knowledge of  technology they also use advance technology like AR in snapchat etc.And they make  money through that.And the best part of this this technology to create a lot of  opportunity to earn money as coder, developer, and through management. There are many way discussing one by one .So let's start                                                                  1.  Blogging Blogging is one of the finest way to earn money .If you  are interested in writing a article then it is  the best way to earn a money online .If you are developer or a programmer then yo

How to make a simple voting app in Android studio

Image
 Hello Guys, Here I am going to discuss about simple use of button in android .How to use button in android.Basically I have used these button as social media voting button just to create a real life example.                  Xml file:-               <? xml version ="1.0" encoding ="utf-8" ?> < androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActivity" > < Button android :id ="@+id/button2" android :layout_width ="103dp" android :layout_height ="88dp" android :background ="#FF4B33 " android :onClick ="youtube" and