码迷,mamicode.com
首页 >  
搜索关键字:read case while    ( 57414个结果
R语言中for、while、if else、switch语句
1、for语句 for (i in 1:5) { print("hello world!") } 2、for语句 sum = 0 for (i in 1:100){ sum = sum + i } print(sum) 3、for语句 sum = 0 for (i in 1:100) { if (i ...
分类:编程语言   时间:2021-04-27 15:30:33    阅读次数:0
Java循环结构
循环结构 while 循环 do...while 循环 for 循环 在Java5中引入了一种主要用于数组的增强型for循环 while 循环 while是最基本的循环,它的结构为: while(布尔表达式){ //循环内容} 只要布尔表达式为 true,循环就会一直运行 我们大多数情况是会让循环停 ...
分类:编程语言   时间:2021-04-27 15:22:47    阅读次数:0
图片转Base64格式
<input type="file" name="dddd" id="imgs"> <input type="button" onclick="ck()" value="submit" /> var reader = new FileReader(); var AllowImgFileSize = ...
分类:其他好文   时间:2021-04-27 14:37:23    阅读次数:0
PAT 1006 sign in and sign out
#include<cstdio> #include<cstring> using namespace std; char firstper[20]; char lastper[20]; char firsttime[20]="23:59:59"; char lasttime[20]="00:00:0 ...
分类:其他好文   时间:2021-04-27 14:33:17    阅读次数:0
刷题归纳
1,二分查找 LCP 12. 小张刷题计划 1011. 在 D 天内送达包裹的能力 参考解题:c++/python3 全是套路 标准二分查找三大框架之一 Binary Search 1,写出判定一个值是否可以满足条件的函数g 2,找出左右边界(最小的可能值L,与最大的可能值R) 3,while L< ...
分类:其他好文   时间:2021-04-27 14:18:51    阅读次数:0
Insertion Sort and Merge Sort
Insertion Sort(插入排序) 思路:for 循环遍历数组中的每一个数 用while将每次遍历到的数于左侧的数进行对比,将小的排到左边 void InsertionSort(int*A, int n){ int key,i=0,p; for(p=0;p<n;p++){ key=A[p]; ...
分类:其他好文   时间:2021-04-26 13:48:01    阅读次数:0
Java程序结构
顺序结构 Java的基本结构就是顺序结构 语句和语句之间,如没有明确要求,它会从上到下依次执行。 顺序结构是最简单的算法结构。 选择结构 if else if单选 if(true|false){ //如果布尔值为true则执行,如false就跳过选择结构 } equals//字符串判断相当于strc ...
分类:编程语言   时间:2021-04-26 13:45:58    阅读次数:0
proxy_pass
proxy_set_header client_body_buffer_size proxy_connect_timeout 代理和real 的超时 proxy_send_timeout proxy_read_timeout proxy_buffer_size proxy_buffers ...
分类:其他好文   时间:2021-04-26 13:41:48    阅读次数:0
读者写者问题(读者优先/读写公平/写者优先)
First reader and writers problem (读者优先) no reader be kept waiting unless a writer has obtain permission to write semaphore rw=1, readcnt_m=1; int read ...
分类:其他好文   时间:2021-04-26 13:39:39    阅读次数:0
UVA11361 Investigating Div-Sum Property
UVA11361 Investigating Div-Sum Property 给定 \(A,B,K\),求在 \([A , B]\) 中,有多少个整数本身能被 \(K\) 整除,并且各个位上数字之和也能被 \(K\) 整除。 一道非常经典的数位 DP 题。 设 \(f(d,m_1,m_2)\) 表 ...
分类:其他好文   时间:2021-04-26 13:29:15    阅读次数:0
57414条   上一页 1 ... 34 35 36 37 38 ... 5742 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!