随笔分类 -  思维题

Divisor Subtraction
摘要:Description You are given an integer number nn. The following algorithm is applied to it: if n=0, then end algorithm; find the smallest prime divisor  阅读全文
posted @ 2018-12-07 21:51 Baiyi_destroyer 阅读(321) 评论(0) 推荐(0)
Maximum Sum of Digits(CodeForces 1060B)
摘要:Description You are given a positive integer nn. Let S(x) be sum of digits in base 10 representation of xx, for example, S(123)=1+2+3=6, S(0)=0. Your 阅读全文
posted @ 2018-10-05 17:33 Baiyi_destroyer 阅读(728) 评论(0) 推荐(0)
Vasya And Password(CodeForces - 1051A)
摘要:Vasya came up with a password to register for EatForces — a string ss. The password in EatForces should be a string, consisting of lowercase and upper 阅读全文
posted @ 2018-10-03 18:25 Baiyi_destroyer 阅读(358) 评论(0) 推荐(0)
Factorial(hdu 1124)
摘要:Description The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this 阅读全文
posted @ 2018-08-30 15:55 Baiyi_destroyer 阅读(147) 评论(0) 推荐(0)
Sonya and Robots(CodeForces 1004C)
摘要:Since Sonya is interested in robotics too, she decided to construct robots that will read and recognize numbers. Sonya has drawn nn numbers in a row,  阅读全文
posted @ 2018-08-10 09:45 Baiyi_destroyer 阅读(168) 评论(0) 推荐(0)
CodeForces - 1015 D.Walking Between Houses
摘要:Description Natasha is planning an expedition to Mars for nn people. One of the important tasks is to provide food for each participant. The warehouse 阅读全文
posted @ 2018-08-06 22:51 Baiyi_destroyer 阅读(162) 评论(0) 推荐(0)