码迷,mamicode.com
首页 >  
搜索关键字:bool    ( 16475个结果
Educational Codeforces Round 102 (Rated for Div. 2)E题(分层图、最短路)
https://codeforces.com/contest/1473/problem/E vector存图: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0),cin.tie(0 ...
分类:其他好文   时间:2021-02-15 12:17:20    阅读次数:0
go context理解
### go context理解 #### context包 总结起来就一句话:一个接口,四个实现,六个方法 (1.)一个接口 type Context interface { Deadline() (deadline time.Time, ok bool) Done() ←chan struct ...
分类:其他好文   时间:2021-02-10 12:51:22    阅读次数:0
is_sorted
leetcode打卡 题面 class Solution { public: bool checkPossibility(vector<int> &nums) { int n = nums.size(); for (int i = 0; i < n - 1; ++i) { int x = nums[ ...
分类:其他好文   时间:2021-02-08 12:11:43    阅读次数:0
数组的复制/反转/查找(线性,二分法)
public class ArrayListTest { public static void main(String[] args) { String[] arr = new String[]{"AA", "BB", "CC", "DD", "EE"}; // 数组的复制 String[] arr ...
分类:编程语言   时间:2021-02-08 12:03:48    阅读次数:0
TypeScript中的private、protected
首先我们要清楚 private 、 protected 现阶段只是javascript中的保留字(Reserved words),而非关键字(Keywords )。因此TypeScript中的纯类型声明语句,编译后都会被擦除。 class Person { public name: string; ...
分类:其他好文   时间:2021-02-05 11:01:37    阅读次数:0
八皇后(92种解)
//八皇后#include<bits/stdc++.h>using namespace std;int a[9];bool b[9],c[17],d[17];int num;int print(){ num++; for(int i=1;i<=8;i++) cout<<"("<<i<<","<<a[ ...
分类:其他好文   时间:2021-02-05 10:58:33    阅读次数:0
基本类型
public class Demo02 { public static void main(String[] args) { //八大基本类型 //整数 int num1 = 10; //最常用 byte num2 = 20; short num3 = 30; long num4 = 30l; // ...
分类:其他好文   时间:2021-02-05 10:43:51    阅读次数:0
NX二次开发-检查文件夹是否存在
NX二次开发-检查文件夹是否存在 1 bool CheckFolderExist(const string & strPath) 2 { 3 if (strPath.empty()) 4 { 5 return false; 6 } 7 8 WIN32_FIND_DATA wfd; 9 BOOL bV ...
分类:其他好文   时间:2021-02-05 10:36:27    阅读次数:0
NX二次开发-创建目录
NX二次开发-创建目录 1 bool CreateDir(string path) 2 { 3 if (path.empty()) 4 { 5 return false; 6 } 7 8 CreateDirectory(multiByteToWideChar(path), NULL); 9 10 r ...
分类:其他好文   时间:2021-02-05 10:35:29    阅读次数:0
CF529B Group Photo 2 (online mirror version)
日常不搞清楚题意乱写 WA。 看值域这么小,考虑枚举最大高度 \(maxh\): \(h_i>maxh\) 且 \(w_i>maxh\),不合法。 \(h_i>maxh\) 且 \(w_i\leq maxh\),必须换。 \(h_i\leq maxh\) 且 \(w_i>maxh\),不能换。 \( ...
分类:其他好文   时间:2021-02-04 12:24:22    阅读次数:0
16475条   上一页 1 ... 16 17 18 19 20 ... 1648 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!