随笔分类 - 感觉还可以的思维题
摘要:题目连接 : https://ac.nowcoder.com/acm/contest/923/C 算是一道找规律的题了,因为后一个人会比前一个人多,可以理解成后一个人要继承前一个人,sum为当前糖果数,add为下一个人比前一个人多多少糖果,num表示有多少第三种发糖的方法, 第三中发糖的方法后一个比
阅读全文
摘要:题目连接 : https://codeforces.com/contest/1151/problem/B 可能我想法有问题,我怎么感觉B题的思路不直接想出来的,我想了一会才想出来,感觉不难,但可能有更简单的算法没想到。 AC代码:
阅读全文
摘要:题目连接 : https://codeforces.com/contest/1114/problem/C 题目大意:给一个整数n(1e18>=n>=0),和一个整数k(1e12>=k>=2),问n!在k进制情况下末尾有多少个0. 题目很好理解,思路也很有意思,首先n!在十进制下有多少个0,很好想,1
阅读全文
摘要:2017 ACM-ICPC 亚洲区(西安赛区)网络赛 C题 题目连接 : https://nanti.jisuanke.com/t/A1269 Define the function S(x)S(x) for xx is a positive integer. S(x)S(x) equals to
阅读全文
摘要:题目连接 : http://codeforces.com/problemset/problem/891/A You have an array a with length n, you can perform operations. Each operation is like this: choo
阅读全文
摘要:题目链接:https://codeforces.com/problemset/problem/282/C The Bitlandians are quite weird people. They do everything differently. They have a different alp
阅读全文
摘要:题目奉上: It's the end of July – the time when a festive evening is held at Jelly Castle! Guests from all over the kingdom gather here to discuss new tren
阅读全文

浙公网安备 33010602011771号