随笔分类 -  cf

摘要:C. Harmony Analysistime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe semester is already endin... 阅读全文
posted @ 2016-01-10 10:45 hyx1 阅读(266) 评论(0) 推荐(0)
摘要:D. Antimattertime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIahub accidentally discovered a secr... 阅读全文
posted @ 2014-04-17 00:30 hyx1 阅读(368) 评论(0) 推荐(0)
摘要:D. Beautiful Pairs of Numberstime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe sequence of int... 阅读全文
posted @ 2014-04-17 00:28 hyx1 阅读(125) 评论(0) 推荐(0)
摘要:D. Long Pathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day, little Vasya found himself in a maze consisting of(n + 1)rooms, numbered from1to(n + 1). Initially, Vasya is at the first room and to get out of the maze, he needs to get to the( 阅读全文
posted @ 2014-04-11 14:45 hyx1 阅读(208) 评论(0) 推荐(0)
摘要:D. Upgrading Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have an array of positive integersa[1], a[2], ..., a[n]and a set ofbadprime numbersb1, b2, ..., bm. The prime numbers that do not occur in the setbare consideredgood. Thebeautyo 阅读全文
posted @ 2014-03-26 00:02 hyx1 阅读(248) 评论(0) 推荐(0)
摘要:D. Minesweeper 1Dtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputGame "Minesweeper 1D" is played on a line of squares, the line's height is 1 square, the line's width isnsquares. Some of the squares contain bombs. If a square do 阅读全文
posted @ 2014-03-25 00:46 hyx1 阅读(339) 评论(0) 推荐(0)
摘要:D. Toy Sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Chris is very keen on his toy blocks. His teacher, however, wants Chris to solve more problems, so he decided to play a trick on Chris.There are exactlysblocks in Chris's set, ea 阅读全文
posted @ 2014-03-24 00:25 hyx1 阅读(253) 评论(0) 推荐(0)
摘要:C. Unusual Producttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Chris is a huge fan of linear algebra. This time he has been given a homework about theunusual squareof a square matrix.Thedot productof two integer number vectorsxandyof siz 阅读全文
posted @ 2014-03-23 23:17 hyx1 阅读(231) 评论(0) 推荐(0)
摘要:D. Roman and Numberstime limit per test4 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputRoman is a young mathematician, very famous in Uzhland. Unfortunately, Sereja doesn't think so. To make Sereja change his mind, Roman is ready to solve any mathematical probl 阅读全文
posted @ 2014-03-11 22:26 hyx1 阅读(489) 评论(0) 推荐(0)
摘要:E. Inna and Binary Logictime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna is fed up with jokes about female logic. So she started using binary logic instead.Inna has an array ofnelementsa1[1], a1[2], ..., a1[n]. Girl likes to train in her bina 阅读全文
posted @ 2014-03-08 20:26 hyx1 阅读(249) 评论(0) 推荐(0)
摘要:D. Dima and Bacteriatime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima took up the biology of bacteria, as a result of his experiments, he invented k types of bacteria. Overall, there are n bacteria at his laboratory right now, and the number o 阅读全文
posted @ 2014-03-06 20:05 hyx1 阅读(292) 评论(0) 推荐(0)