这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:
其他好文 时间:
2021-06-02 12:02:18
阅读次数:
0
整理自:正点原子PPT 串口简介 详情见STM32F4开发指南 串口通信基本原理 常用串口相关寄存器 1、USART_SR状态寄存器 2、USART_DR数据寄存器 3、USART_BRR波特率寄存器 串口操作相关函数 void USART_Init(); //串口初始化:波特率,数据字长,奇偶校验 ...
分类:
其他好文 时间:
2021-06-02 11:58:55
阅读次数:
0
c语言中统计字符串中数字字符出现的次数。 1、 #include <stdio.h> void int_count(char x[], int cnt[]) { int i; while(x[i]) { if(x[i] >= '0' && x[i] <= '9') { cnt[x[i] - '0'] ...
分类:
编程语言 时间:
2021-06-02 11:38:03
阅读次数:
0
看了网上的许多博客,然后自己总结了下,谢谢大神们的贡献 public class MergeSort { public void sort(int[] arr, int lo, int hi) { if (lo >= hi) return; int mid = lo + (hi - lo)/2; s ...
分类:
编程语言 时间:
2021-06-02 11:26:03
阅读次数:
0
任务描述 有一个长度为n(n <= 240)的正整数,从中取出s(s < n)个数,使剩余的数保持原来的次序不变,求这个正整数经过删数之后最小是多少。 输入格式 第一行输入n和s 输出格式 输出一个整数 输入样例 178543 4 输出样例 13 1 #include<stdio.h> 2 #inc ...
分类:
其他好文 时间:
2021-06-02 11:25:02
阅读次数:
0
DWORD GetTickCount(void); 1) 定义 For Release configurations, this function returns the number of milliseconds since the device booted, excluding any ti ...
分类:
其他好文 时间:
2021-06-02 11:21:18
阅读次数:
0
c语言中使用putchar显示字符串 1、 #include <stdio.h> int put(char x[]) { int i = 0; while(x[i]) putchar(x[i++]); } int main(void) { char str[128]; printf("str: ") ...
分类:
编程语言 时间:
2021-06-02 11:15:10
阅读次数:
0
1、 #include <stdio.h> void put(char x[], int n) { while(n-- > 0) printf(x); putchar('\n'); } int main(void) { char str[128]; int n; printf("str: "); s ...
分类:
编程语言 时间:
2021-06-02 11:11:52
阅读次数:
0
语法示例: while 条件为真 do echo ok done #!/bin/bash while true do echo ok done while循环数字 #!/bin/bash a=1 b=9 while [ $a -lt 10 ] do sum=$((a + b)) echo $a + ...
分类:
系统相关 时间:
2021-06-02 11:02:44
阅读次数:
0
//微信小程序注意下面两种赋值方式的区别,影响页面数据的渲染显示 一、页面不会重新渲染 that.data.tipsshow2=true: 二、页面会重新渲染that.setData({tipsshow2: true}) 下面的文章对这个问题说明的比较清晰 一、摘要 小程序中我们会经常使用到this ...
分类:
微信 时间:
2021-06-02 10:57:19
阅读次数:
0