AOJ2301 Sleeping Time

Sleeping Time | Aizu Online Judge

Miki is a high school student. She has a part time job, so she cannot take enough sleep on weekdays. She wants to take good sleep on holidays, but she doesn't know the best length of sleeping time for her.

Read on →
May 21st, 2016

AOJ1280 Slim Span

Slim Span

Given an undirected weighted graph G, you should find one of spanning trees specified as follows. A spanning tree T is a tree (a connected subgraph without cycles) which connects all the n vertices with n - 1 edges.

Read on →
May 21st, 2016

AOJ2153 Mirror Cave

Mirror Cave | Aizu Online Judge

Introduction to Programming Introduction to Algorithms and Data Structures Library of Data Structures Library of Graph Algorithms Library of Computational Geometry Library of Dynamic Programming Library of Number Theory

Read on →
May 21st, 2016

AOJ1175 and Then. How Many Any There?

And Then. How Many Are There? | Aizu Online Judge

Introduction to Programming Introduction to Algorithms and Data Structures Library of Data Structures Library of Graph Algorithms Library of Computational Geometry Library of Dynamic Programming Library of Number Theory

Read on →
May 21st, 2016

AOJ2005 Water Pipe Construction

Water Pipe Construction | Aizu Online Judge

Introduction to Programming Introduction to Algorithms and Data Structures Library of Data Structures Library of Graph Algorithms Library of Computational Geometry Library of Dynamic Programming Library of Number Theory

Read on →
May 20th, 2016

AOJ2401 Equation

Equation | Aizu Online Judge

Introduction to Programming Introduction to Algorithms and Data Structures Library of Data Structures Library of Graph Algorithms Library of Computational Geometry Library of Dynamic Programming Library of Number Theory

Read on →
May 20th, 2016

AOJ1155 How Can I Satisfy Thee? Let Me Count the Ways...

How can I satisfy thee? Let me count the ways... | Aizu Online Judge

Introduction to Programming Introduction to Algorithms and Data Structures Library of Data Structures Library of Graph Algorithms Library of Computational Geometry Library of Dynamic Programming Library of Number Theory

Read on →
May 20th, 2016

Codeforces353-div2D Tree Construction

Problem - D - Codeforces

During the programming classes Vasya was assigned a difficult problem. However, he doesn't know how to code and was unable to find the solution in the Internet, so he asks you to help. You are given a sequence a, consisting of n distinct integers, that is used to construct the binary search tree.

Read on →
May 17th, 2016

Codeforces353-div2C Money Transfers

Problem - C - Codeforces

There are n banks in the city where Vasya lives, they are located in a circle, such that any two banks are neighbouring if their indices differ by no more than . Also, bank 1 and bank n are neighbours if n  > 1. No bank is a neighbour of itself.

Read on →
May 17th, 2016

Codeforces353-div2B Restoring Painting

Problem - B - Codeforces

Vasya works as a watchman in the gallery. Unfortunately, one of the most expensive paintings was stolen while he was on duty. He doesn't want to be fired, so he has to quickly restore the painting. He remembers some facts about it.

Read on →
May 17th, 2016