- 博客(5)
- 收藏
- 关注
转载 乱
公式 :(a + b ) % mod = ( a % mod + b % mod ) % moda * b % mod = (a % mod * b % mod ) % moda / b % mod = a * ( b ^ ( mod - 2 ) ) % mod;为什么对 1e9 + 7 取模( 转载 )大数阶乘,大数的排列组合等,一般都要求将输出结果对 10000...
2019-03-09 16:38:35 260
原创 简单的二级结构体排序
**题目信息**利用 sort 函数;#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>using namespace std;struct good{ char name[35]; double
2018-11-28 17:01:24 242
原创 三道跟string有关的题
来源 && 题目信息这道题我卡在不知道怎么存储多个字符串,后面学习到了…一般我使用string字符串的输入,都是这样 :#include <iostream>#include <string>using namespace std;int main(){ str
2018-11-17 16:26:53 169
原创 一些函数及其头文件(附加粗略解释)
C++ :#include <bits/stdc++.h> // 万能头文件 : 源代码(注意 : 开始时不要用,要熟悉函数的头文件。)#include < cma
2018-11-07 19:00:44 1312 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人