UVA-1103(Ancient Messages,World Finals) http://uva.onlinejudge.org/external/11/p5130a.png 输入H行W列的字符矩阵(H<=200, W<=50) 每个字符都是16进制数字,将他们转化为二进制后产生的图形中有'1' ...
分类:
其他好文 时间:
2020-05-27 15:54:42
阅读次数:
76
package main import ( "fmt" "strconv" ) func main() { arr := []int{12, 34, 651, 3, 65, 1, 4} fmt.Println(arr) // 冒泡排序 // value := bubble_sort(arr) // ...
分类:
编程语言 时间:
2020-05-27 14:58:22
阅读次数:
63
假设存在表格如下: select 'a' as category, 19 as duration union all select 'b' as category, 15 as duration union all select 'c' as category, 12 as duration uni ...
分类:
编程语言 时间:
2020-05-27 11:51:22
阅读次数:
328
https://codeforces.com/contest/1358 A. Park Lighting 输出 \(\lceil \dfrac{ab}2 \rceil\) #include <bits/stdc++.h> using namespace std; #define repeat(i,a ...
分类:
其他好文 时间:
2020-05-27 01:24:40
阅读次数:
103
壹 ? 引 今天来做一道十分烦躁的题目,为什么烦躁,因为我字母写错了提交了三次错了三次!!!我的leetcode正确率大大下降!!那么这道题是leetcode的485. 最大连续1的个数,题目描述如下: 给定一个二进制数组, 计算其中最大连续1的个数。 示例 1: 输入: [1,1,0,1,1,1] ...
分类:
Web程序 时间:
2020-05-27 01:08:45
阅读次数:
70
题目描述 给定平面直角坐标系上的 \(n\) 个点,分别求出距离最近的两个点的距离和距离最远的两个点的距离。注意,距离为直线距离。 输入格式 第一行一个整数,\(n\)。 接下来 \(n\) 行每行两个非负浮点数,$x_i$?,\(y_i\),表示第 \(i\) 个点的 X 坐标与 Y 坐标。 输出 ...
分类:
其他好文 时间:
2020-05-26 20:37:14
阅读次数:
51
cat cat -A显示控制字符 -s禁止输出多个空白行 -n给文本添加行号 cat > foo.txt The quick brown fox jumped over the lazy dog. cat -ns foo.txt 1 The quick brown fox 2 3 jumped ov ...
分类:
系统相关 时间:
2020-05-26 20:17:07
阅读次数:
72
https://ac.nowcoder.com/acm/problem/53681 intial : a 从小到大,b 从大到小 finally b - a分为连部分 前部分 : 正的 a 从小到大, 后部分 : 负的 b 从大到小 ??? 最后收益是正的,也就是说m是一直增加的,自然要从消耗小的开 ...
分类:
其他好文 时间:
2020-05-25 12:26:57
阅读次数:
49
inotify 监控简单shell for foo in /proc/*/fd/*; do readlink -f $foo; done | grep inotify | sort | uniq -c | sort -nr 一个很不错的script #!/bin/sh ? # Get the pro ...
分类:
其他好文 时间:
2020-05-25 12:10:58
阅读次数:
73
链接:https://leetcode-cn.com/problems/sort-list/ 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNod ...
分类:
编程语言 时间:
2020-05-24 23:59:47
阅读次数:
102