$\mathcal Link. 在一个含 \(n\) 个结点的有向图中,存在边 \(\lang i,i+1,0\rang\),它们不能被删除;还有边 \(\lang i,j,-1\rang~(i<j)\) 和 \(\lang i,j,1\rang~(i>j)\),删除一条边的代价为 \(a_{i,j ...
分类:
其他好文 时间:
2021-07-01 16:38:11
阅读次数:
0
基础类型定义: boolean:布尔类型定义 true/false:布尔值 byte:字节值定义 char:字符型定义 double:浮点数定义 float:浮点数定义 int:整形定义 long:长整型的定义 short:短整型的定义 null:空对象或空字符 流程类型定义: if/else:满足 ...
分类:
编程语言 时间:
2021-06-30 18:34:34
阅读次数:
0
Js得到选中的文字 (function getSelectionText() { if (window.getSelection) { return window.getSelection().toString(); } else if (document.selection && document ...
分类:
其他好文 时间:
2021-06-28 21:07:38
阅读次数:
0
简介 对cmp的理解能力 常规题 code #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; struct Student{ int idx; int n ...
分类:
其他好文 时间:
2021-06-28 21:01:31
阅读次数:
0
题目链接:用最少数量的箭引爆气球 题目描述: 题解: class Solution { public: static bool cmp(vector<int> &a, vector<int> &b) //按右边界排序 { return a[1] < b[1]; } int findMinArrowS ...
分类:
其他好文 时间:
2021-06-28 20:44:14
阅读次数:
0
前序遍历: result = [] st = [root] while st: node = st.pop(-1) if node.right: st.append(node.right) if node.left: st.append(node.left) result.append(node.v ...
分类:
其他好文 时间:
2021-06-28 20:43:55
阅读次数:
0
一、简介 基于matlab二维边界单元法计算腐蚀电位 二、源代码 clear; fid=fopen('input.dat','r'); indat=fscanf(fid,'%g%g%d%g',[4,inf]); indat=indat'; xb=indat(:,1); yb=indat(:,2); ...
分类:
其他好文 时间:
2021-06-28 20:17:15
阅读次数:
0
选择结构 if eles 如果条件成立就进入到分支里面执行相应代码,如果不成立,则不会进入 if(条件){ 执行相应代码; }else{ 执行相应代码; } 多分支 if else if if{ }else if{ }else if{ }else{ ? console.log('请输入:');let ...
分类:
其他好文 时间:
2021-06-28 19:49:27
阅读次数:
0
1.题目如下 2.解题代码 #include<stdio.h> int majority(int a[],int n){ int i,count=1,c=a[0]; for(i=1;i<n;i++) { if(a[i]==c) count++; else { if(count>0) count--; ...
分类:
其他好文 时间:
2021-06-28 19:33:29
阅读次数:
0
20193312 2021-6 《Python程序设计》综合实验报告 课程:《Python程序设计》 班级: 1933 姓名: 朱文昱 学号:20193312 实验教师:王志强 实验日期:2020年6月24日 必修/选修: 公选课 1.实验内容 内容: 贪吃蛇小游戏制作 要求: 能用电脑的方向键控制 ...
分类:
编程语言 时间:
2021-06-28 19:13:43
阅读次数:
0