VJ
Summer丶snow
这个作者很懒,什么都没留下…
展开
-
C语言问题: Andryusha and Socks
Andryusha is an orderly boy and likes to keep things in their place.Today he faced a problem to put his socks in the wardrobe. He has n distinct pairs of socks which are initially in a bag. The pair...原创 2019-01-12 20:52:50 · 201 阅读 · 0 评论 -
A + B Again
A + B AgainThere must be many A + B problems in our HDOJ , now a new one is coming. Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexadecimal too. E...原创 2019-01-30 23:05:47 · 199 阅读 · 0 评论 -
C语言问题:Ostap and Grasshopper
Ostap and GrasshopperOn the way to Rio de Janeiro Ostap kills time playing with a grasshopper he took with him in a special box. Ostap builds a line of length n such that some cells of this line are...原创 2019-01-16 21:00:47 · 159 阅读 · 0 评论 -
C语言问题 : Checking the Calendar
Checking the CalendarYou are given names of two days of the week.Please, determine whether it is possible that during some non-leap year the first day of some month was equal to the first day of t...原创 2019-01-16 20:57:36 · 311 阅读 · 0 评论 -
C语言 问题: Mammoth's Genome Decoding
Mammoth's Genome Decoding The process of mammoth's genome decoding in Berland comes to its end!One of the few remaining tasks is to restore unrecognized nucleotides in a found chain s. Each nucl...原创 2019-01-08 21:36:57 · 221 阅读 · 0 评论 -
C语言 问题: Dasha and Stairs
Dasha and Stairs On her way to programming school tiger Dasha faced her first test — a huge staircase!The steps were numbered from one to infinity. As we know, tigers are very fond of all stri...原创 2019-01-08 21:35:36 · 185 阅读 · 0 评论 -
C语言 问题:Arpa’s hard exam and Mehrdad’s naive cheat
Arpa’s hard exam and Mehrdad’s naive cheatThere exists an island called Arpa’s land, some beautiful girls live there, as ugly ones do.Mehrdad wants to become minister of Arpa’s land. Arpa has prep...原创 2019-01-08 21:34:15 · 155 阅读 · 0 评论 -
C语言 问题:Anton and Danik
Anton and Danik Anton likes to play chess, and so does his friend Danik.Once they have played n games in a row. For each game it's known who was the winner — Anton or Danik. None of the games en...原创 2019-01-08 21:31:42 · 418 阅读 · 0 评论 -
C语言问题: Greed
Jafar has n cans of cola. Each can is described by two integers: remaining volume of cola ai and can's capacity bi (ai ≤ bi).Jafar has decided to pour all remaining cola into just 2 cans, determin...原创 2019-01-12 20:52:29 · 354 阅读 · 0 评论 -
超级楼梯 (递推)
超级楼梯有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?Input输入数据首先包含一个整数N,表示测试实例的个数,然后是N行数据,每行包含一个整数M(1<=M<=40),表示楼梯的级数。Output对于每个测试实例,请输出不同走法的数量Sample Input223Sample Output1...原创 2019-01-31 11:46:34 · 253 阅读 · 0 评论