随笔分类 -  ACM - 规律题

摘要:A . After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show during the feast. To enjoy the sh 阅读全文
posted @ 2018-09-10 20:05 楼主好菜啊 阅读(346) 评论(0) 推荐(0) 编辑
摘要:B . Problem DescriptionChiaki has n strings s1,s2,…,sn consisting of '(' and ')'. A string of this type is said to be balanced:+ if it is the empty st 阅读全文
posted @ 2018-08-24 09:09 楼主好菜啊 阅读(159) 评论(0) 推荐(0) 编辑
摘要:2088: 电音之王 描述 题目描述: 终于活成了自己讨厌的样子。 听说多听电音能加快程序运行的速度。 定义一个数列,告诉你a0,a1,m0,m1,ca\_0,a\_1,m\_0,m\_1,ca0​,a1​,m0​,m1​,c,定义an=m0an−1+m1an−2+ca\_n=m\_0a\_{n-1 阅读全文
posted @ 2018-08-08 11:45 楼主好菜啊 阅读(163) 评论(0) 推荐(0) 编辑
摘要:链接:https://www.nowcoder.com/acm/contest/91/F来源:牛客网 小Y在研究数字的时候,发现了一个神奇的等式方程,他屈指算了一下有很多正整数x满足这个等式,比如1和2,现在问题来了,他想知道从小到大第N个满足这个等式的正整数,请你用程序帮他计算一下。 (表示按位异 阅读全文
posted @ 2018-04-15 20:56 楼主好菜啊 阅读(282) 评论(0) 推荐(0) 编辑
摘要:Alice and Bob begin their day with a quick game. They first choose a starting number X0 ≥ 3 and try to reach one million by the process described belo 阅读全文
posted @ 2018-03-12 17:31 楼主好菜啊 阅读(183) 评论(0) 推荐(0) 编辑
摘要:Dima is a beginner programmer. During his working process, he regularly has to repeat the following operation again and again: to remove every second 阅读全文
posted @ 2018-03-10 09:28 楼主好菜啊 阅读(213) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示