Petya is the most responsible worker in the Research Institute. So he was asked to make a very important experiment: to melt the chocolate bar with a ...
分类:
其他好文 时间:
2018-02-09 23:53:07
阅读次数:
244
题目出处:http://codeforces.com/problemset/problem/886/C 题目大意:很多墓穴之间有通道,探险家来回穿梭并记录日志 日志规则:第一次到该墓穴计时间t,0<=t<当前时间i;再次经过记录i 本题网上有很多方法解决,但是代码长度都很长。 这个方法虽然实现起来很 ...
分类:
其他好文 时间:
2017-12-17 18:08:22
阅读次数:
145
C. Short Program C. Short Program Petya learned a new programming language CALPAS. A program in this language always takes one non-negative integer an ...
分类:
其他好文 时间:
2017-10-29 21:59:02
阅读次数:
121
做出了4题,还不错,可惜还是掉rating……能保持在蓝名已经不错了。 题目跳转链接。 【A】公平的游戏 题意: Petya和Vasya在玩游戏。他们有n张卡片(n是偶数)。每张卡片上有一个整数。 游戏开始前,Petya会选出一个数,然后Vasya会选出另一个数(不同于Petya选的数),然后每人从 ...
分类:
其他好文 时间:
2017-10-04 14:21:53
阅读次数:
169
cf一如既往挺丧 看丧题点我! 【A】分数 Petya是数学迷,特别是有关于分数的数学。最近他学了所谓一个分数被叫做“真分数”当且仅当其分子小于分母,而一个分数被叫做“最简分数”当且仅当其分子分母互质。在闲暇时间,Petya在用计算器研究:如何把最简真分数转换为小数等问题。有一天他不小心把除号(÷) ...
分类:
其他好文 时间:
2017-09-07 21:59:38
阅读次数:
169
Petya is a big fan of mathematics, especially its part related to fractions. Recently he learned that a fraction is called proper iff its numerator is ...
分类:
其他好文 时间:
2017-09-07 13:24:43
阅读次数:
184
CodeForces E. Lucky Array 幸运数列 Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contai ...
分类:
其他好文 时间:
2017-08-19 18:31:03
阅读次数:
209
It's hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya, but he thinks he lacks time to finish th ...
分类:
其他好文 时间:
2017-08-08 19:48:52
阅读次数:
195
Petya recieved a gift of a string s with length up to 105 characters for his birthday. He took two more empty strings t and u and decided to play a ga ...
分类:
其他好文 时间:
2017-08-02 00:43:18
阅读次数:
142