Skip to content
#

forloop

Here are 24 public repositories matching this topic...

Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and lowercase Latin letters, it: deletes all the vowels, inserts a character "." before each consonant, replaces all uppercase consonants with correspo…

  • Updated Mar 8, 2020
  • Java

Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation. The teacher has written down the sum of multiple numbers. Pupils should calculate the sum. To make the calculation easier, the sum only contains numbers 1, 2 and 3. Still, that isn't enough for Xenia. She is only beginning t…

  • Updated Mar 9, 2020
  • Java

Kefa decided to make some money doing business on the Internet for exactly n days. He knows that on the i-th day (1 ≤ i ≤ n) he makes ai money. Kefa loves progress, that's why he wants to know the length of the maximum non-decreasing subsegment in sequence ai. Let us remind you that the subsegment of the sequence is its continuous fragment. A su…

  • Updated Mar 9, 2020
  • Java

One day three best friends Petya, Vasya and Tonya decided to form a team and take part in programming contests. Participants are usually offered several problems during programming contests. Long before the start the friends decided that they will implement a problem if at least two of them are sure about the solution. Otherwise, the friends won…

  • Updated Mar 8, 2020
  • Java

Petya loves football very much. One day, as he was watching a football match, he was writing the players' current positions on a piece of paper. To simplify the situation he depicted it as a string consisting of zeroes and ones. A zero corresponds to players of one team; a one corresponds to players of another team. If there are at least 7 playe…

  • Updated Mar 9, 2020
  • Java

Improve this page

Add a description, image, and links to the forloop topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the forloop topic, visit your repo's landing page and select "manage topics."

Learn more