A 跑步 题目大意 : * Code Show Code #include <cstdio> #include <algorithm> using namespace std; const int N = 2005; int read(int x = 0, int f = 1, char c = g ...
分类:
其他好文 时间:
2021-03-01 13:16:23
阅读次数:
0
package com.sean.base.threadStudy; import com.sean.base.object01.SimpleDateFormatDemo; import java.text.SimpleDateFormat; import java.util.Date; /** * ...
分类:
其他好文 时间:
2021-03-01 13:10:17
阅读次数:
0
虚树 [SDOI2011]消耗战 板题,基本上是对着网上的板子敲的 #include <bits/stdc++.h> using namespace std; inline int read() { int out = 0; register char cc = getchar(); while ( ...
分类:
其他好文 时间:
2021-03-01 12:59:52
阅读次数:
0
第三章- switch语句和循环 1.1 分支语句switch语句 格式 switch (表达式) { case 1: 语句体1; break; case 2: 语句体2; break; ... default: 语句体n+1; break; } 执行流程: 首先计算出表达式的值 其次,和case依 ...
分类:
其他好文 时间:
2021-03-01 12:59:14
阅读次数:
0
一、流程控制 while循环:只要条件满足一直循环 read -p "请输入一个数字:" white_data while [ ${white_data} -lt 20 ] do echo ${white_data} white_data=$((white_data + 1)) done until ...
分类:
系统相关 时间:
2021-02-27 13:22:57
阅读次数:
0
React源码 commit阶段详解点击进入React源码调试仓库。当render阶段完成后,意味着在内存中构建的workInProgress树所有更新工作已经完成,这包括树中fiber节点的更新、diff、effectTag的标记、effectList的收集。此时workInProgress树的完 ...
分类:
其他好文 时间:
2021-02-27 13:21:37
阅读次数:
0
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:
其他好文 时间:
2021-02-27 13:00:32
阅读次数:
0
题目要求 提示用户输入网卡的名字,然后我们用脚本输出网卡的ip,需要考虑下面问题: 1. 输入的字符不符合网卡名字规范,怎么应对。 2. 名字符合规范,但是根本就没有这个网卡又怎么应对。 参考答案 #!/bin/bash ip add |awk -F ': ' '$1 ~ "^[1-9]" {pri ...
分类:
其他好文 时间:
2021-02-26 13:34:50
阅读次数:
0
在上一篇文章中,我们讲到了 goroutine 在操作系统的并发编程体系,以及在 Go 语言并发编程模型中的地位和作用等一系列内容,今天我们继续来聊一聊这个话题。 知识扩展 问题 1:怎样才能让主 goroutine 等待其他 goroutine? 我刚才说过,一旦主 goroutine 中的代码执 ...
分类:
编程语言 时间:
2021-02-26 13:15:22
阅读次数:
0
https://www.cnblogs.com/qiyuexin/p/7067646.html 2. 串口程序 while(1){ if(++x>=180){ y = 90; x = 0; } if(x>=90) y++; else y--; z = sin(x*Pi/90); p = cos(x* ...
分类:
其他好文 时间:
2021-02-26 13:03:26
阅读次数:
0