Try Again

随笔分类 -  OJ Codefroces

摘要:Since Sonya has just learned the basics of matrices, she decided to play with them a little bit. Sonya imagined a new type of matrices that she called 阅读全文
posted @ 2018-07-13 16:13 十年换你一句好久不见 阅读(501) 评论(0) 推荐(0)
摘要:A. Remove Duplicates A. Remove Duplicates Petya has an array aconsisting of nintegers. He wants to remove duplicate (equal) elements.Petya wants to le 阅读全文
posted @ 2018-05-13 20:11 十年换你一句好久不见 阅读(341) 评论(0) 推荐(0)
摘要:You are given a sequence a1, a2, ..., an of one-dimensional segments numbered 1 through n. Your task is to find two distinct indices i and j such that 阅读全文
posted @ 2018-05-01 20:17 十年换你一句好久不见 阅读(530) 评论(0) 推荐(0)
摘要:You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely mis 阅读全文
posted @ 2018-05-01 19:51 十年换你一句好久不见 阅读(470) 评论(0) 推荐(0)
摘要:Arkady is playing Battleship. The rules of this game aren't really important.There is a field of n×n cells. There should be exactly one k-decker on th 阅读全文
posted @ 2018-04-30 14:07 十年换你一句好久不见 阅读(1729) 评论(0) 推荐(0)
摘要:You are given a tree (a graph with n vertices and n - 1 edges in which it's possible to reach any vertex from any other vertex using only its edges). 阅读全文
posted @ 2018-04-19 16:04 十年换你一句好久不见 阅读(453) 评论(0) 推荐(0)
摘要:http://codeforces.com/problemset/problem/963/A 不考虑正负的话,每两项之间之间公比为b/a,考虑正负,则把k段作为循环节,循环节育循环节之间公比为(b/a)^k,在把第一个k小节整体看作第一项,等比数列求和。 #include <iostream> #i 阅读全文
posted @ 2018-04-19 15:02 十年换你一句好久不见 阅读(454) 评论(0) 推荐(0)
摘要:B. Ordering Pizza It's another Start[c]up finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza ( 阅读全文
posted @ 2017-10-10 16:07 十年换你一句好久不见 阅读(806) 评论(0) 推荐(0)
摘要:C. Mahmoud and Ehab and the xor Mahmoud and Ehab are on the third stage of their adventures now. As you know, Dr. Evil likes sets. This time he won't 阅读全文
posted @ 2017-09-20 23:07 十年换你一句好久不见 阅读(258) 评论(0) 推荐(0)
摘要:Mahmoud and Ehab and the bipartiteness Mahmoud and Ehab continue their adventures! As everybody in the evil land knows, Dr. Evil likes bipartite graph 阅读全文
posted @ 2017-09-20 15:51 十年换你一句好久不见 阅读(392) 评论(0) 推荐(0)
摘要:A. Arpa and a research in Mexican wave Arpa is researching the Mexican wave. There are n spectators in the stadium, labeled from 1 to n. They start th 阅读全文
posted @ 2017-09-05 07:20 十年换你一句好久不见 阅读(325) 评论(0) 推荐(0)
摘要:A. Odds and Ends time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Where do odds begin, and 阅读全文
posted @ 2017-09-02 19:57 十年换你一句好久不见 阅读(201) 评论(0) 推荐(0)
摘要:A. Sorting by Subsequences You are given a sequence a1, a2, ..., an consisting of different integers. It is required to split this sequence into the m 阅读全文
posted @ 2017-08-29 13:06 十年换你一句好久不见 阅读(450) 评论(0) 推荐(0)
摘要:Shortest Path Problem? Shortest Path Problem? You are given an undirected graph with weighted edges. The length of some path between two vertices is t 阅读全文
posted @ 2017-08-23 22:07 十年换你一句好久不见 阅读(158) 评论(0) 推荐(0)
摘要:A. Chess Tourney time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Chess Tourney time li 阅读全文
posted @ 2017-08-22 09:42 十年换你一句好久不见 阅读(247) 评论(0) 推荐(0)
摘要:A. Generous Kefa time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Kefa found n ba 阅读全文
posted @ 2017-08-19 11:09 十年换你一句好久不见 阅读(324) 评论(0) 推荐(0)
摘要:D. Round Subset time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Let's call the roundness 阅读全文
posted @ 2017-08-04 15:59 十年换你一句好久不见 阅读(234) 评论(0) 推荐(0)
摘要:B. Flag of Berland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The flag of Berland is 阅读全文
posted @ 2017-08-04 15:44 十年换你一句好久不见 阅读(268) 评论(0) 推荐(0)
摘要:C. Two Seals time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output One very important person ha 阅读全文
posted @ 2017-08-04 11:32 十年换你一句好久不见 阅读(320) 评论(0) 推荐(0)
摘要:A. Key races time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Two boys decided to compete 阅读全文
posted @ 2017-08-01 20:08 十年换你一句好久不见 阅读(242) 评论(0) 推荐(0)