Skip to content

SL TECH ACADEMY

Contact us
  • Home
  • C++
  • Pyhton
  • Java
  • Networking
  • Problem Solving
    • Algorithms
    • Data Structures
  • Contests
    • IOI
    • APIO
    • Google
      • Code Jam
      • Hash Code
      • Kick Start
  • Resources

SL TECH ACADEMY

Author: Pasindu Piumal

  • IOI

IOI 2020 – Contest Day 1- Tickets Problem and Solution

imageByPasindu PiumalSeptember 24, 2020
IOI 2020 – Contest Day 1- Tickets Problem and Solution
The 32nd International Olympiad in Informatics was held in Online in 2020. There were two competition days, with 3 tasks given to the competitors on each day. You can see Tickets Problem and Solution below. Problem : Solution :  502 total views

Read More

  • IOI

IOI 2020 – Contest Day 1- Supertrees Problem and Solution

imageByPasindu PiumalSeptember 24, 2020
IOI 2020 – Contest Day 1- Supertrees Problem and Solution
The 32nd International Olympiad in Informatics was held in Online in 2020. There were two competition days, with 3 tasks given to the competitors on each day. You can see Supertrees Problem and Solution below. Problem : Solution :  392 total views

Read More

  • IOI

IOI 2020 – Contest Day 1- Plants Problem and Solution

imageByPasindu PiumalSeptember 24, 2020
IOI 2020 – Contest Day 1- Plants Problem and Solution
The 32nd International Olympiad in Informatics was held in Online in 2020. There were two competition days, with 3 tasks given to the competitors on each day. You can see Plants Problem and Solution below. Problem : Solution :  212 total views

Read More

  • Algorithms

Day of the Programmer – HackerRank Solution

imageByPasindu PiumalSeptember 11, 2020
Day of the Programmer – HackerRank Solution
Problem : Marie invented a Time Machine and wants to test it by time-traveling to visit Russia on the Day of the Programmer (the 256th day of the year) during a year in the inclusive range from 1700 to 2700. From 1700 to 1917, Russia’s official calendar was the Julian

Read More

  • APIO

APIO 2020 Problems and Solutions – Fun Tour

imageByPasindu PiumalSeptember 5, 2020
APIO 2020 Problems and Solutions – Fun Tour
Time limit 2 s Memory limit 512 MB Problem : There are NN attractions in the biggest theme park in Jakarta, numbered from 00 to N - 1N−1. These attractions are connected by N - 1N−1 bidirectional roads such that there is a unique path between any pair of attractions through

Read More

  • APIO

APIO 2020 Problems and Solutions – Swapping Cities

imageByPasindu PiumalSeptember 5, 2020
APIO 2020 Problems and Solutions – Swapping Cities
Time limit 2 s Memory limit 512 MB Problem : There are NN cities in Indonesia, numbered from 00 to N - 1N−1. There are also MM two-way roads, numbered from 00 to M - 1M−1. Each road connects two different cities. The ii-th road connects the U[i]U[i]-th city and

Read More

  • APIO

APIO 2020 Problems and Solutions – Painting Walls

imageByPasindu PiumalSeptember 5, 2020
APIO 2020 Problems and Solutions – Painting Walls
Time limit 1500 ms Memory limit 512 MB Problem : It has been a while since the last time Pak Dengklek painted the wall on his house, so he wants to repaint it. The wall consists of NN segments, numbered from 00 to N - 1N−1. For this problem, we

Read More

  • Algorithms

Migratory Birds – HackerRank Solution

imageByPasindu PiumalSeptember 3, 2020
Migratory Birds – HackerRank Solution
Problem : You have been asked to help study the population of birds migrating across the continent. Each type of bird you are interested in will be identified by an integer value. Each time a particular kind of bird is spotted, its id number will be added to your array of

Read More

  • Algorithms

Divisible Sum Pairs – HackerRank Solution

imageByPasindu PiumalSeptember 3, 2020
Divisible Sum Pairs – HackerRank Solution
Problem : You are given an array of n integers, ar = [ar[0], ar[1], ..., ar[n-1]], and a positive integer, k. Find and print the number of (i, j) pairs where i < j and ar[i] + ar[j] is divisible by k. For example, ar = [1, 2, 3, 4, 5, 6] and k = 5. Our three pairs meeting

Read More

  • Algorithms

Birthday Chocolate – HackerRank Solution

imageByPasindu PiumalSeptember 1, 2020
Birthday Chocolate – HackerRank Solution
Problem : Lily has a chocolate bar that she wants to share it with Ron for his birthday. Each of the squares has an integer on it. She decides to share a contiguous segment of the bar selected such that the length of the segment matches Ron’s birth month and the sum of

Read More

  • Algorithms

Breaking the Records – HackerRank Solutions

imageByPasindu PiumalAugust 31, 2020
Breaking the Records – HackerRank Solutions
Problem : Maria plays college basketball and wants to go pro. Each season she maintains a record of her play. She tabulates the number of times she breaks her season record for most points and least points in a game. Points scored in the first game

Read More

  • Algorithms

Between Two Sets – HackerRank Solution

imageByPasindu PiumalAugust 25, 2020
Between Two Sets – HackerRank Solution
Problem : You will be given two arrays of integers and asked to determine all integers that satisfy the following two conditions: The elements of the first array are all factors of the integer being considered The integer being considered is a factor of all elements of the

Read More

  • Algorithms

Kangaroo – HackerRank Solution

imageByPasindu PiumalAugust 21, 2020
Kangaroo – HackerRank Solution
Problem : You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location x1 and moves at a rate of v1 meters

Read More

  • Algorithms

Apple and Orange – HackerRank Solution

imageByPasindu PiumalAugust 21, 2020
Apple and Orange – HackerRank Solution
Problem : Sam’s house has an apple tree and an orange tree that yield an abundance of fruit. In the diagram below, the red region denotes his house, where s is the start point, and t is the endpoint. The apple tree is to the left of his house, and the orange tree is to

Read More

  • Algorithms

Grading Students – HackerRank Solution

imageByPasindu PiumalAugust 21, 2020
Grading Students – HackerRank Solution
Problem : HackerLand University has the following grading policy: Every student receives a grade in the inclusive range from 1 to 100. Any grade less than 40 is a failing grade. Sam is a professor at the university and likes to round each student’s grade according to

Read More

  • Algorithms

Time Conversion – HackerRank Solution

imageByPasindu PiumalAugust 21, 2020
Time Conversion – HackerRank Solution
Problem : Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock. Function Description : Complete

Read More

  • Algorithms

Birthday Cake Candles – HackerRank Solution

imageByPasindu PiumalAugust 20, 2020
Birthday Cake Candles – HackerRank Solution
Problem : You are in charge of the cake for your niece’s birthday and have decided the cake will have one candle for each year of her total age. When she blows out the candles, she’ll only be able to blow out the tallest ones. Your task is to find out how many candles

Read More

  • C++

Print Pretty – HackerRank Solution

imageByPasindu PiumalAugust 18, 2020
Print Pretty – HackerRank Solution
Problem : Your manager gave you a text file with many lines of numbers to format and print. For each row of 3 space-separated doubles, format and print the numbers using the specifications in the Output Format section below. Input Format : The first line

Read More

  • IOI

IOI 2019 – Sky Walking Problem and Solution

imageByPasindu PiumalAugust 15, 2020
IOI 2019 – Sky Walking Problem and Solution
The 31st International Olympiad in Informatics was held in Baku, Azerbaijan in 2019. There were two competition days, with 3 tasks given to the competitors on each day. You can see Sky Walking Problem and Solution below. Problem : Solution : Explanation :

Read More

  • IOI

IOI 2019 – Vision Program Problem and Solution

imageByPasindu PiumalAugust 15, 2020
IOI 2019 – Vision Program Problem and Solution
The 31st International Olympiad in Informatics was held in Baku, Azerbaijan in 2019. There were two competition days, with 3 tasks given to the competitors on each day. You can see Vision Program Problem and Solution below. Problem : Solution : Explanation :

Read More

Posts navigation

Page 1 Page 2 … Page 5 NextNext page

Last Posts

IOI 2020

IOI 2020 – Contest Day 1- Tickets Problem and Solution

September 24, 2020
IOI 2020

IOI 2020 – Contest Day 1- Supertrees Problem and Solution

September 24, 2020
IOI 2020

IOI 2020 – Contest Day 1- Plants Problem and Solution

September 24, 2020

Day of the Programmer – HackerRank Solution

September 11, 2020

APIO 2020 Problems and Solutions – Fun Tour

September 5, 2020

Archives

  • September 2020 (10)
  • August 2020 (68)
  • July 2020 (18)
Created by SL TECH ACADEMY. Powered by WordPress
Logo
  • Home
  • C++
  • Pyhton
  • Java
  • Networking
  • Problem Solving
    • Algorithms
    • Data Structures
  • Contests
    • IOI
    • APIO
    • Google
      • Code Jam
      • Hash Code
      • Kick Start
  • Resources