随笔分类 -  OJ-codeforces

摘要:A sheep lives on an infinite field. The sheep wants to eat some grass. Grass only exists in one place. That place is a circle defined by a center poin 阅读全文
posted @ 2017-09-30 12:42 starry_sky 阅读(275) 评论(0) 推荐(0)
摘要:A. Fair Game Petya and Vasya decided to play a game. They have n cards (n is an even number). A single integer is written on each card. Before the gam 阅读全文
posted @ 2017-09-26 16:17 starry_sky 阅读(249) 评论(0) 推荐(0)
摘要:A. Arpa and a research in Mexican wave A. Arpa and a research in Mexican wave Arpa is researching the Mexican wave. There are n spectators in the stad 阅读全文
posted @ 2017-09-05 09:14 starry_sky 阅读(228) 评论(0) 推荐(0)
摘要:B. Godsend time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Leha somehow found an array c 阅读全文
posted @ 2017-08-19 01:12 starry_sky 阅读(632) 评论(0) 推荐(0)
摘要:There are n cities and n - 1 roads in the Seven Kingdoms, each road connects two cities and we can reach any city from any other by the roads. Theon a 阅读全文
posted @ 2017-08-13 11:18 starry_sky 阅读(342) 评论(0) 推荐(0)
摘要:It's well known that the best way to distract from something is to do one's favourite thing. Job is such a thing for Leha. So the hacker began to work 阅读全文
posted @ 2017-08-11 21:48 starry_sky 阅读(184) 评论(0) 推荐(0)
摘要:Erelong Leha was bored by calculating of the greatest common divisor of two factorials. Therefore he decided to solve some crosswords. It's well known 阅读全文
posted @ 2017-08-11 12:25 starry_sky 阅读(295) 评论(0) 推荐(0)
摘要:D. Round Subset Let's call the roundness of the number the number of zeros to which it ends. You have an array of n numbers. You need to choose a subs 阅读全文
posted @ 2017-08-04 20:53 starry_sky 阅读(308) 评论(0) 推荐(0)
摘要:A. Text Volume You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of ca 阅读全文
posted @ 2017-08-04 14:54 starry_sky 阅读(271) 评论(0) 推荐(0)
摘要:A. Text Volume You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of ca 阅读全文
posted @ 2017-08-04 11:43 starry_sky 阅读(351) 评论(0) 推荐(0)
摘要:D. Palindromic characteristics Palindromic characteristics of string s with length |s| is a sequence of |s| integers, where k-th number is the total n 阅读全文
posted @ 2017-08-01 21:06 starry_sky 阅读(223) 评论(0) 推荐(0)
摘要:A. Key races A. Key races Two boys decided to compete in text typing on the site "Key races". During the competition, they have to type a text consist 阅读全文
posted @ 2017-08-01 11:13 starry_sky 阅读(261) 评论(0) 推荐(0)
摘要:A. The Useless Toy A. The Useless Toy Walking through the streets of Marshmallow City, Slastyona have spotted some merchants selling a kind of useless 阅读全文
posted @ 2017-07-31 12:01 starry_sky 阅读(118) 评论(0) 推荐(0)
摘要:H. Special Palindrome A sequence of positive and non-zero integers called palindromic if it can be read the same forward and backward, for example: 15 阅读全文
posted @ 2017-07-17 20:12 starry_sky 阅读(353) 评论(0) 推荐(0)
摘要:G. The jar of divisors Alice and Bob play the following game. They choose a number N to play with. The rules are as follows: - They write each number 阅读全文
posted @ 2017-07-17 20:09 starry_sky 阅读(287) 评论(0) 推荐(0)
摘要:F. Contestants Ranking Ahmad is one of the best students in HIAST, and also a very good problems Solver. In the time you will spend reading this probl 阅读全文
posted @ 2017-07-17 20:06 starry_sky 阅读(172) 评论(0) 推荐(0)
摘要:D. Time to go back You have been out of Syria for a long time, and you recently decided to come back. You remember that you have M friends there and s 阅读全文
posted @ 2017-07-17 20:03 starry_sky 阅读(218) 评论(0) 推荐(0)
摘要:C. Palindrome Again !! Given string with N characters, your task is to transform it to a palindrome string. It's not as easy as you may think because 阅读全文
posted @ 2017-07-17 20:01 starry_sky 阅读(288) 评论(0) 推荐(0)
摘要:B. New Job This is the first day for you at your new job and your boss asks you to copy some files from one computer to other computers in an informat 阅读全文
posted @ 2017-07-17 19:59 starry_sky 阅读(274) 评论(0) 推荐(0)
摘要:A. Restaurant Tables 题意是一个点单人座有a个双人座有b个,有n组人,每组人有一个或两个人。当一个人时优先坐单人座的没有就坐没有人坐的双人座,然后才是在已经坐了一人的双人座,还没有就拒绝为他服务。当两个人时,只坐双人座的没有就拒绝服务。问这个店要拒绝服务多少人。 直接模拟下就行了 阅读全文
posted @ 2017-07-12 13:38 starry_sky 阅读(164) 评论(0) 推荐(0)