码迷,mamicode.com
首页 >  
搜索关键字:for while until    ( 29426个结果
高精度运算
###高精度算法 高精度加法: 题目描述 高精度加法,相当于a+b problem,不用考虑负数. 输入格式 分两行输入。a*,*b ≤10500 输出格式 输出只有一行,代表a+b的值 输入输出样例 输入 #1 1 1 输出 #1 2 输入 #2 1001 9099 输出 #2 10100 当拿到 ...
分类:其他好文   时间:2021-05-23 23:08:55    阅读次数:0
16:迭代器
内容概要 迭代器介绍 for循环原理 迭代器的优缺点 内容详细 1 迭代器介绍 迭代器即用来迭代取值的工具,而迭代是重复反馈过程的活动,其目的通常是为了逼近所需目标或结果每一次对工程的重复称为一次'迭代',而每一次迭代得到的结果会作为下一次迭代的初始值,单纯的重复并不是迭代?while True: ...
分类:其他好文   时间:2021-05-23 23:07:23    阅读次数:0
[USACO20FEB]Timeline G
很明显的拓扑 推一波: https://www.luogu.com.cn/blog/Hehe-0/p2017-dizzy-cows-g 1 #include<bits/stdc++.h> 2 3 4 using namespace std; 5 const int mmm=1e6+1; 6 7 in ...
分类:其他好文   时间:2021-05-23 23:01:52    阅读次数:0
SetWindowSubclass 设置窗口子类回调
今天想给一个 Static 控件添加一个鼠标相关的事件:移入,移出,按下,松开事件 一开始以为在 while (GetMessage (&messages, NULL, 0, 0)) { /* Translate virtual-key messages into character message ...
分类:Windows程序   时间:2021-05-04 16:13:11    阅读次数:0
层次打印二叉树
#include<vector> #include<queue> #include<string> #include<binaryNode.hpp> #include<iostream> #include<sstream> template<typename T> class traverse { ...
分类:其他好文   时间:2021-05-04 15:34:11    阅读次数:0
shell逐行读取替换
#!/bin/bash while read linedo echo $line txt=`echo $line |awk -F' ' '{print $1}'` id=`echo $line|awk -F' ' '{print $3}'` echo $txt echo $id sed "s/ws2 ...
分类:系统相关   时间:2021-05-03 12:39:24    阅读次数:0
点亮PICO板载LED灯
一、目标 会PICO引脚的使用 点亮LED 二、上程序 import machine import utime led_onboard = machine.Pin(25, machine.Pin.OUT) while True: led_onboard.value(1) utime.sleep(5) ...
分类:其他好文   时间:2021-05-03 12:32:04    阅读次数:0
韩顺平Java斐波那契查找
代码有一个bug,当数组长度为13的时候,查找数组最后一个数时会报数组角标越界。将代码: //获取到斐波那契分割数值的下标 while (high > f[k] - 1) { k++; } 改成 //获取到斐波那契分割数值的下标 while (high >= f[k] - 1) { k++; } 就 ...
分类:编程语言   时间:2021-04-30 12:34:46    阅读次数:0
实验4 函数和数组应用编程
实验任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n ...
分类:编程语言   时间:2021-04-30 12:31:46    阅读次数:0
实验四
任务1 #include <stdio.h> long long fun(int n); // 函数声明 int main() { int n; long long f; while(scanf("%d", &n) != EOF) { f = fun(n); // 函数调用 printf("n = ...
分类:其他好文   时间:2021-04-30 12:31:08    阅读次数:0
29426条   上一页 1 ... 14 15 16 17 18 ... 2943 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!