随笔分类 - 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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:A. Restaurant Tables 题意是一个点单人座有a个双人座有b个,有n组人,每组人有一个或两个人。当一个人时优先坐单人座的没有就坐没有人坐的双人座,然后才是在已经坐了一人的双人座,还没有就拒绝为他服务。当两个人时,只坐双人座的没有就拒绝服务。问这个店要拒绝服务多少人。 直接模拟下就行了
阅读全文

浙公网安备 33010602011771号