1、 #include <stdio.h> int main(void) { int i; puts("please input an integer."); printf("i = "); scanf("%d", &i); while (i > 0) { putchar('*'); i = i - ...
分类:
编程语言 时间:
2021-01-07 12:38:31
阅读次数:
0
void test() { Mat src = imread("D:/opencvsp/pic.png"); if (src.empty()) { printf("could not load image\n"); return -1; } namedWindow("test opencv setu ...
分类:
其他好文 时间:
2021-01-07 12:07:55
阅读次数:
0
1、 #include <stdio.h> int main(void) { int a,b; puts("please input two integers."); printf("a = "), scanf("%d", &a); printf("b = "), scanf("%d", &b); ...
分类:
编程语言 时间:
2021-01-07 11:48:01
阅读次数:
0
实用技能:60个常用的Linux命令 ●查看硬件信息相关命令(8个) ifconfig free fdisk ethtool mii-tool dmidecode dmesg lspci ●其它(19个) echo printf rpm yum watch alias unalias date cl ...
分类:
系统相关 时间:
2021-01-06 12:19:17
阅读次数:
0
static void TimerInterruptHandler(void * CallBackRef) { static int sec = 0; printf("%d Seconds\n", sec++); XScuTimer * TimerInstPtr = (XScuTimer *)Cal ...
分类:
其他好文 时间:
2021-01-06 11:51:20
阅读次数:
0
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int b; double a,s; void fun(double x,int d)//引入递归深度 { if(d==b) return; s=s ...
分类:
其他好文 时间:
2021-01-05 10:58:51
阅读次数:
0
#include<stdio.h> int max(int a, int b)//形参 { return a > b ? a : b; } int main() { int x, y; scanf("%d%d", &x, &y); printf("%d", max(x, y));//实际参数 ret ...
分类:
其他好文 时间:
2021-01-04 10:39:27
阅读次数:
0
CF553E Kyoya and Train 还是那句话,我觉得分治FFT是有实现难度的 初学,dalao别D 看完题第一反应应该是设 \(dp(i,j)\) 表示时刻 \(j\) 到达点 \(i\) 的最小代价。 发现完全不会处理边界,想了一会就舍掉了。 设 \(dp(i,j)\) 表示时刻 \( ...
分类:
其他好文 时间:
2021-01-04 10:32:05
阅读次数:
0
题目描述 题目链接 一棵二叉树可以按照如下规则表示成一个由 \(0、1、2\) 组成的字符序列,我们称之为 “二叉树序列 \(S\)”: $S= \begin 0 \ \ \ \ \ \ \ \ \ \ 表示该树没有子节点 \newline 1S_1 \ \ \ \ \ \ 表示该树有一个子节点,S ...
分类:
其他好文 时间:
2021-01-02 11:15:58
阅读次数:
0
SparseArray稀疏数组 当一个数组中大部分元素为0,或者为同一个值的数组时,可以使用稀疏数组来保存该数组。 稀疏数组可以看做是普通数组的压缩,普通数组是值无效数据量远大于有效数据量的数组 稀疏数组的处理方法是: 1)记录数组一共有几行几列,有多少个不同的值(第一行) 2)把具有不同值的元素的 ...
分类:
编程语言 时间:
2021-01-02 11:08:16
阅读次数:
0