codeforces A题
文章平均质量分 80
bupt_xycr
欢迎关注我的公众号:算法入门
熟悉
c++
caffe
pytorch
mxnet
tensorflow
深度学习
自动驾驶
点云
图像处理
编程比赛
python
java
展开
-
A. Die Roll
A. Die Rolltime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputYakko, Wakko and Dot, world-famous animaniacs, decided to rest from acting in cartoons, a原创 2016-04-21 19:02:05 · 688 阅读 · 0 评论 -
A. IQ test
A. IQ testtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputBob is preparing to pass IQ test. The most frequent task in this test is to find out whi原创 2016-04-21 19:02:49 · 372 阅读 · 0 评论 -
A. Almost Prime
A. Almost Primetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA number is called almost prime if it has exactly two distinct prime divisors. For原创 2016-04-21 19:02:52 · 484 阅读 · 0 评论 -
A. Next Test
A. Next Testtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output?Polygon? is a system which allows to create programming tasks in a simple and profess原创 2016-04-21 19:02:54 · 875 阅读 · 0 评论 -
A. Spit Problem
A. Spit Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn a Berland's zoo there is an enclosure with camels. It is known that camels like原创 2016-04-21 19:02:57 · 361 阅读 · 0 评论 -
A. Accounting
A. Accountingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA long time ago in some far country lived king Copa. After the recent king's reform,原创 2016-04-21 19:03:00 · 362 阅读 · 0 评论 -
A. Worms Evolution
A. Worms Evolutiontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProfessor Vasechkin is studying evolution of worms. Recently he put forward hypo原创 2016-04-21 19:03:03 · 665 阅读 · 0 评论 -
A. Reconnaissance
A. Reconnaissancetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAccording to the regulations of Berland's army, a reconnaissance unit should cons原创 2016-04-21 19:03:05 · 554 阅读 · 0 评论 -
A. What is for dinner?
A. What is for dinner?time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn one little known, but very beautiful country called Waterland, lives a lo原创 2016-04-21 19:03:08 · 609 阅读 · 0 评论 -
A. Reconnaissance 2
A. Reconnaissance 2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputn soldiers stand in a circle. For each soldier his height ai is known. A reconn原创 2016-04-21 19:03:11 · 311 阅读 · 0 评论 -
A. Shell Game
A. Shell Gametime limit per test2 secondsmemory limit per test64 megabytesinputinput.txtoutputoutput.txtToday the ?Z? city residents enjoy a shell game competition. The residents are gathered on the m原创 2016-04-21 19:03:14 · 417 阅读 · 0 评论 -
A. Extra-terrestrial Intelligence
A. Extra-terrestrial Intelligencetime limit per test2 secondsmemory limit per test64 megabytesinputinput.txtoutputoutput.txtRecently Vasya got interested in finding extra-terrestrial intelligence. He原创 2016-04-21 19:03:16 · 532 阅读 · 0 评论 -
A. Towers
A. Towerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Vasya has received a young builder’s kit. The kit consists of several wooden bars,原创 2016-04-21 19:03:19 · 570 阅读 · 0 评论 -
A. Ring road
A. Ring roadtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNowadays the one-way traffic is introduced all over the world in order to improve driv原创 2016-04-21 19:02:46 · 528 阅读 · 0 评论 -
A. You\'re Given a String...
A. You're Given a String...time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're given a string of lower-case Latin letters. Your task is to find原创 2016-04-21 19:02:44 · 436 阅读 · 0 评论 -
A. Second Order Statistics
A. Second Order Statisticstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce Bob needed to find the second order statistics of a sequence of int原创 2016-04-21 19:02:41 · 874 阅读 · 0 评论 -
A. Power Consumption Calculation
A. Power Consumption Calculationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputTom is interested in power consumption of his favourite laptop. His原创 2016-04-21 19:02:08 · 588 阅读 · 0 评论 -
A. Increasing Sequence
A. Increasing Sequencetime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputA sequence a0,?a1,?...,?at?-?1 is called increasing if ai?-?1?ai for each i:?0原创 2016-04-21 19:02:10 · 351 阅读 · 0 评论 -
A. Super Agent
A. Super Agenttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a very secret base in Potatoland where potato mash is made according to a s原创 2016-04-21 19:02:13 · 316 阅读 · 0 评论 -
A. Numbers
A. Numberstime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputLittle Petya likes numbers a lot. He found that number 123 in base 16 consists of two digi原创 2016-04-21 19:02:16 · 302 阅读 · 0 评论 -
A. Letter
A. Lettertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputA boy Bob likes to draw. Not long ago he bought a rectangular graph (checked) sheet with n原创 2016-04-21 19:02:19 · 279 阅读 · 0 评论 -
A. Cottage Village
A. Cottage Villagetime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputA new cottage village called ?Flatville? is being built in Flatland. By now they原创 2016-04-21 19:02:22 · 412 阅读 · 0 评论 -
A. Flag
A. Flagtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputAccording to a new ISO standard, a flag of every country should have a chequered field n?×?m原创 2016-04-21 19:02:25 · 454 阅读 · 0 评论 -
A. Noldbach problem
A. Noldbach problemtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputNick is interested in prime numbers. Once he read about Goldbach problem. It sta原创 2016-04-21 19:02:27 · 484 阅读 · 0 评论 -
A. Triangle
A. Triangletime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputAt a geometry lesson Bob learnt that a triangle is called right-angled if it is nondegen原创 2016-04-21 19:02:30 · 400 阅读 · 0 评论 -
A. World Football Cup
A. World Football Cuptime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputEveryone knows that 2010 FIFA World Cup is being held in South Africa now. By原创 2016-04-21 19:02:33 · 277 阅读 · 0 评论 -
A. BerOS file system
A. BerOS file systemtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputThe new operating system BerOS has a nice feature. It is possible to use any nu原创 2016-04-21 19:02:35 · 430 阅读 · 0 评论 -
A. Jabber ID
A. Jabber IDtime limit per test0.5 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputJabber ID on the national Berland service ?Babber? has a form @[/resource], where — i原创 2016-04-21 19:02:38 · 451 阅读 · 0 评论 -
A. Find Color
A. Find Colortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputNot so long ago as a result of combat operations the main Berland place of interest —原创 2016-04-21 19:03:22 · 341 阅读 · 0 评论