上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 49 下一页
摘要: Two people are playing a game with a string ss, consisting of lowercase latin letters.On a player's turn, he should choose two consecu... 阅读全文
posted @ 2019-01-23 13:00 black_hole6 阅读(354) 评论(0) 推荐(0)
摘要: 链接:https://ac.nowcoder.com/acm/contest/317/D来源:牛客网 题目描述小a和小b来到了一条布满了黄金的街道上。它们想要带几块黄金回去,然而这里的城管担心他们拿走的太多,于是要求小a和小b通过做一个游戏来决定最后得到的黄金的数量。... 阅读全文
posted @ 2019-01-22 20:35 black_hole6 阅读(168) 评论(0) 推荐(0)
摘要: 100 可以表示为带分数的形式:100 = 3 + 69258 / 714 还可以表示为:100 = 82 + 3546 / 197 注意特征:带分数中,数字1~9分别出现且只出现一次(不包含0)。 类似这样的带分数,100 有 11 种表示... 阅读全文
posted @ 2019-01-22 13:35 black_hole6 阅读(464) 评论(0) 推荐(0)
摘要: #include#include#include#includeusing namespace std;int main(){ int n,m; scanf("%d/%d",&n,&m); int cnt=0; printf("0."); while(n) { p... 阅读全文
posted @ 2019-01-22 13:22 black_hole6 阅读(364) 评论(0) 推荐(0)
摘要: Given a string ss of length nn and integer kk (1≤k≤n1≤k≤n). The string ss has a level xx, if xx is largest non-negative integer, such ... 阅读全文
posted @ 2019-01-21 10:43 black_hole6 阅读(289) 评论(0) 推荐(0)
摘要: Salem gave you nn sticks with integer positive lengths a1,a2,…,ana1,a2,…,an.For every stick, you can change its length to any other po... 阅读全文
posted @ 2019-01-21 10:40 black_hole6 阅读(177) 评论(0) 推荐(0)
摘要: Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, ... 阅读全文
posted @ 2019-01-20 22:29 black_hole6 阅读(171) 评论(0) 推荐(0)
摘要: There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). InputInput consists of a sequence of ... 阅读全文
posted @ 2019-01-20 14:03 black_hole6 阅读(140) 评论(0) 推荐(0)
摘要: In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of da... 阅读全文
posted @ 2019-01-20 13:44 black_hole6 阅读(212) 评论(0) 推荐(0)
摘要: The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then th... 阅读全文
posted @ 2019-01-20 13:22 black_hole6 阅读(234) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 49 下一页