牛客
qq_41818544
学会坚强,一生荣光
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Cities (思维 树)
链接:https://ac.nowcoder.com/acm/contest/123/C来源:牛客网 题目描述There are cities in Byteland, and the city has a value . The cost of building a bidirectional road between two cities is the sum of their...原创 2018-11-03 14:26:30 · 236 阅读 · 0 评论 -
A除以B (20) (模拟除法)
题目描述本题要求计算A/B,其中A是不超过1000位的正整数,B是1位正整数。你需要输出商数Q和余数R,使得A = B * Q + R成立。 输入描述:输入在1行中依次给出A和B,中间以1空格分隔。 输出描述:在1行中依次输出Q和R,中间以1空格分隔。 输入例子:123456789050987654321 7 输出例子:1763668...原创 2018-11-03 19:15:39 · 217 阅读 · 0 评论 -
快速幂(二进制,十进制)
矩阵快速幂:#include<iostream>#include<cstdio>#include<cstring>using namespace std;typedef long long LL;const int maxn = 3*1e6+5;struct Matrix{ long long an[2][2];};LL a, b,...原创 2019-08-02 11:13:06 · 241 阅读 · 0 评论
分享