码迷,mamicode.com
首页 >  
搜索关键字:do while    ( 38720个结果
python之1-100之间的总和,奇数和,偶数和
一、总和 i = 1 sum = 0 while i <= 100: sum += i i += 1 print(sum) 二、奇数和 i = 1 sum = 0 while i <= 100: if i % 2 != 0: sum += i i += 1 print(sum) 三、偶数和 i = ...
分类:编程语言   时间:2021-05-25 18:19:09    阅读次数:0
gdb 打印每个线程的bt ps 状态等命令
for i in `ps -AL |grep Worker | awk '{print $2}'`; do \ echo $i ; \ gdb --q --n --ex bt --batch --pid $i; \ done 2>&1 |tee /var/stacks.txt CPU使用率较低但负载 ...
分类:数据库   时间:2021-05-24 17:19:34    阅读次数:0
[C++]二叉搜索树
二叉搜索树 预备知识 二叉链存图 Bolg 感谢: 代码参考:CSDN博主「chudongfang2015」的原创文章 链接 原理讲述 作用 用于对数据有序的排列 其中最典型的就是对数组进行有序排列 此片中也以此为模板 性质 对于树中的每一个节点 其左子树的数据均比次节点的数小 其右子树的数据均比次 ...
分类:编程语言   时间:2021-05-24 17:18:38    阅读次数:0
jquery的下载
jquery的官方下载地址: https://jquery.com/ write less ,do more <用最少的代码完成更多的功能> 1、点击 2、“右键”点击 3、点击链接另存为(或者按键盘上的“k”) 4、在 “下载到” 里面选择下载地址,后点“下载” 下载第一个和第二个 5、打开下载的 ...
分类:Web程序   时间:2021-05-24 17:14:45    阅读次数:0
CF271D Good Substrings
原题链接 题意:给出 \(|s| \lesqlant 1500\) 并且给出哪些字母是好哪些是坏,然后要求求出一共有多少本质不同的字串,使得坏串个数不超过 \(k\) 个。 题解:显然可以直接 \(n^2\) 暴力找然后,用字符串 \(Hash\) 判重。 代码: #include <bits/st ...
分类:其他好文   时间:2021-05-24 17:09:10    阅读次数:0
C语言实现更相减损术和辗转相除法及效率对比
更相减损术 #include <stdio.h> int main(void) { int a = 0, b = 0, cnt = 0, min = 0, max = 0, sub = 1; scanf("%d%d", &a, &b); while(!(a & 0x1) && !(b & 0x1)) ...
分类:编程语言   时间:2021-05-24 17:03:25    阅读次数:0
LeetCode739. 每日温度
请根据每日 气温 列表,重新生成一个列表。对应位置的输出为:要想观测到更高的气温,至少需要等待的天数。如果气温在这之后都不会升高,请在该位置用 0 来代替。 例如,给定一个列表 temperatures = [73, 74, 75, 71, 69, 72, 76, 73],你的输出应该是 [1, 1 ...
分类:其他好文   时间:2021-05-24 16:21:35    阅读次数:0
qt 文本流&数据流
// 文本流 QFile file("aaa.txt"); file.open(QFileDevice::WriteOnly); QTextStream stream(&file); stream<<QString("hell oworld")<<123456; file.close(); // 读 ...
分类:其他好文   时间:2021-05-24 16:16:10    阅读次数:0
.Net 5 调用 HttpContext.SignInAsync 报错 Microsoft.AspNetCore.Authentication.AuthenticationService.ChallengeAsync(HttpContext context, string scheme, AuthenticationProperties properties) 解决
An unhandled exception occurred while processing the request. InvalidOperationException: No authenticationScheme was specified, and there was no Defau ...
分类:Web程序   时间:2021-05-24 16:10:46    阅读次数:0
vue api 请求报错 Error occurred while trying to proxy request /user/report-user from localhost:83....
一.报错信息 Error occurred while trying to proxy request /user/report-user from localhost:83 .... 二.index.js 配置信息 proxyTable: { '/api': { target: 'http://l ...
分类:Windows程序   时间:2021-05-24 15:32:48    阅读次数:0
38720条   上一页 1 ... 11 12 13 14 15 ... 3872 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!