会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博学善思
一起成长
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
49
下一页
2019年1月23日
Codeforces-B-Game with string(模拟栈)
摘要: 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)
2019年1月22日
小a与黄金街道(欧拉函数+快速幂)
摘要: 链接: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)
高精度除法(到小数点后200位)
摘要: #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)
2019年1月21日
CodeForces-Zuhair and Strings(思维+枚举)
摘要: 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)
Codeforces-Salem and Sticks(枚举+思维)
摘要: 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)
2019年1月20日
HDU - 1042-N!(Java)
摘要: 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)
HDU-Fibonacci Again(打表找规律)
摘要: 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)
HDU-Big Number (斯特林公式)
摘要: 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)
HDU-Digital Roots(思维+大数字符串模拟)
摘要: 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
下一页
公告