随笔分类 - 思维题
摘要:Pathfinding is a task of finding a route between two points. It often appears in many problems. For example, in a GPS navigation software where a driv
阅读全文
摘要:Gardener Alexey teaches competitive programming to high school students. To congratulate Alexey on the Teacher’s Day, the students have gifted him a c
阅读全文
摘要:The only difference between easy and hard versions is constraints. There are nn kids, each of them is reading a unique book. At the end of any day, th
阅读全文
摘要:As you might already know, space has always been a problem in ICPC Jakarta. To cope with this, ICPC Jakarta is planning to build two new buildings. Th
阅读全文
摘要:Danang and Darto are classmates. They are given homework to create a permutation of N integers from 1 to N. Danang has completed the homework and crea
阅读全文
摘要:【CodeForces 1251B Binary Palindromes】DescriptionA palindrome is a string t which reads the same backward as forward (formally, t[i]=t[|t|+1−i] for all
阅读全文
摘要:A. Integer PointsDescriptionDLS and JLS are bored with a Math lesson. In order to entertain themselves, DLS took a sheet of paper and drew n distinct
阅读全文
摘要:【CodeForces 1249A Yet Another Dividing into Teams】DescriptionYou are a coach of a group consisting of n students. The i-th student has programming ski
阅读全文
摘要:【CodeForces 1251A Broken Keyboard 】DescriptionRecently Polycarp noticed that some of the buttons of his keyboard are malfunctioning. For simplicity, w
阅读全文