下面开始列举 #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { ////输入输出 printf("Hello world!"); printf("\r\n"); printf("Number = %d" ...
分类:
其他好文 时间:
2020-07-10 17:07:05
阅读次数:
77
// 1234 = 1^4 + 2^4 + 3^4 + 4^4; // 341 = 3^3 + 4^3 + 1^3 // 类似于水仙花数 #include <stdio.h> #include <math.h> int digitCount(int n) { //此函数用于获取整数的位数 int i ...
分类:
其他好文 时间:
2020-07-10 11:37:30
阅读次数:
54
把数组中所有的奇数放到偶数的左边不在意顺序 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int N; int a[maxn]; int main() { scanf("%d", &N); for(i ...
分类:
编程语言 时间:
2020-07-10 09:21:57
阅读次数:
79
初始代码 #include<stdio.h> //这是编译预处理命令 main() //定义主函数 { //函数开始的标志 printf("hello world"); //输出所指定的一行信息 return 0; //函数执行完毕时返回函数值0 } //函数结束的标志 每一个C语言程序都必须有一个 ...
分类:
编程语言 时间:
2020-07-10 00:21:52
阅读次数:
91
\(\rm NTT\) 好像全机房除了我以外都精通 \(\rm NTT\) ,\(\rm QAQ\) 前前言 \(\rm FFT\):快速傅里叶变换,是用来做多项式乘法或者加法卷积以及其他运算的一种 \(\mathcal O(n \log n)\) 的方法 \(\rm FNTT及NTT\):快速傅里 ...
分类:
其他好文 时间:
2020-07-09 22:49:03
阅读次数:
157
int img_savePicture(AVFrame *pFrame, char *out_filename) {//编码保存图片 int width = pFrame->width; int height = pFrame->height; AVCodecContext *pCodeCtx = ...
分类:
其他好文 时间:
2020-07-09 19:18:24
阅读次数:
90
解决方案:查看Atom编辑器的默认编码格式是utf-8把它修改为gbk就行 ...
分类:
其他好文 时间:
2020-07-08 19:43:14
阅读次数:
70
前言:本人并非所谓的大佬,蒟蒻一枚,写文章的目的主要就是这么几个。一个是为了总结昨天学习的知识,巩固于心;二是将所学的整理起来,也方便以后备用查阅;第三个是可以给其他的有需要的人看,也可以一起学习进步,有必要还可以提建议!总之比没写强吧!缸巴咧! 评判一个程序的好坏通常有几个标准,按照程序的运行效率 ...
分类:
编程语言 时间:
2020-07-08 13:21:50
阅读次数:
56
实测代码 1 void CalculateDataTypeSize(void) 2 { 3 printf("sizeof(char} = %u\r\n", sizeof(char)); 4 printf("sizeof(short} = %u\r\n", sizeof(short)); 5 prin ...
分类:
其他好文 时间:
2020-07-08 01:40:54
阅读次数:
78
题意: 题目链接:https://codeforces.com/problemset/problem/991/E 分析: 多重集合的排列计数,要去掉有前导 $0$ 的情况。 套用多重集合的排列的公式: \(ans=\frac{n!}{n_1!*n_2!*...*n_k!}\) 采用的递归的方式写,枚 ...
分类:
其他好文 时间:
2020-07-07 19:28:29
阅读次数:
100