1.顺序结构 2.判断语句 2.1 单if语句 2.2 标准的if-else语句 3.3 扩展if-else if-else语句 3.选择语句 3.1格式 3.2流程图 3.3流程说明 3.4注意事项 //Incompatible types. Found: 'boolean', required: ...
分类:
其他好文 时间:
2020-05-08 12:41:30
阅读次数:
60
link int dis[500][500]; int cost[500][500]; int pre[500]; int mindis[500]; int mincost[500]; int inque[500]; int main(){ memset(dis,-1,sizeof(dis)); i ...
分类:
其他好文 时间:
2020-05-08 09:32:57
阅读次数:
49
输入的文法(第一行是终结符)将文法保存在txt中,命名为text.txt,与LR1.cpp放在同一目录中即可运行。 text.txt abcde S->aAd S->bAc S->aec S->bed A->e 实现代码: LR1.cpp #include<fstream> #include<ios ...
分类:
编程语言 时间:
2020-05-07 21:27:07
阅读次数:
129
从koa-static中间件学习搭建静态文件服务器 原文地址 koa-send Static file serving middleware koa-static中有说明它只是koa-send的一个包装 const send = require('koa-send'); app.use(async ...
分类:
其他好文 时间:
2020-05-07 00:55:51
阅读次数:
96
Luogu P1290 欧几里德的游戏 又是如一的博弈论题,我们用形象的文字代替复杂的$SG$函数来说明. 首先,题目给定有两个数字,这里设为$(x,y)$且$x y$,我们可以发现,每次操作可以总体分为两种情况: $[1]$在操作时,只有唯一一种操作$x y$,也就是说$xy 2$,这样子操作就不 ...
分类:
其他好文 时间:
2020-05-06 21:52:10
阅读次数:
71
public V put(K key, V value) { return putVal(hash(key), key, value, false, true); } /** * Implements Map.put and related methods * * @param hash hash ...
分类:
其他好文 时间:
2020-05-05 17:47:36
阅读次数:
54
#include <stdio.h> //让n被i除(i的值从2到n-1)int main(){ int n,i; printf("please enter a integer number,n=?"); scanf("%d",&n); for(i=2;i<=n-1;i++) if(n%i==0) ...
分类:
其他好文 时间:
2020-05-05 12:49:00
阅读次数:
274
Description 在数学中,我们常常需要完成若干命题的等价性证明。 例如:有 $4$ 个命题 $a,b,c,d$,要证明他们是等价的,我们需要证明 $a\Leftrightarrow b$,然后 $b\Leftrightarrow c$,最后 $c\Leftrightarrow d$。注意每次 ...
分类:
其他好文 时间:
2020-05-05 11:04:31
阅读次数:
61
通过判断使每一个合数只被其最小质因子筛去一次。 ...
分类:
其他好文 时间:
2020-05-05 10:55:09
阅读次数:
47
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>登录< ...
分类:
Web程序 时间:
2020-05-05 10:33:01
阅读次数:
64