链接: https://codeforces.com/contest/1278/problem/B 题意: You are given two integers a and b. You can perform a sequence of operations: during the first o ...
分类:
其他好文 时间:
2019-12-21 11:44:51
阅读次数:
107
Introduction Roughly speaking, there are two kinds of types in Go. Non-collections and collections. Non-collections, like Boolean, Interger, Floats, a ...
分类:
其他好文 时间:
2019-12-21 11:28:19
阅读次数:
73
time limit per test3 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output You are given a non-empty string s=s1s2…sn, ...
分类:
其他好文 时间:
2019-12-20 23:54:14
阅读次数:
181
Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及zset(sorted set:有序集合)。 String(字符串) string 是 redis 最基本的类型,你可以理解成与 Memcached 一模一样的类型,一个 key 对应一个 val ...
分类:
其他好文 时间:
2019-12-20 22:31:00
阅读次数:
119
题目链接:http://codeforces.com/contest/1272/problem/F 题意:给两个括号序列 s1,s2,要求构造一个最短的规范的括号序列 ans,且满足 s1,s2为 ans 的子序列。 设有三维dp[i][j][k],表示s1串取到i,第二个字符串取到j,k=左括号数 ...
分类:
其他好文 时间:
2019-12-20 20:43:38
阅读次数:
66
题目 中位数是有序序列最中间的那个数。如果序列的大小是偶数,则没有最中间的数;此时中位数是最中间的两个数的平均数。 例如: ,中位数是 ,中位数是 给出一个数组 nums,有一个大小为 k 的窗口从最左端滑动到最右端。窗口中有 k 个数,每次窗口移动 1 位。你的任务是找出每次窗口移动后得到的新窗口 ...
分类:
其他好文 时间:
2019-12-20 18:40:07
阅读次数:
76
1 #include <stdio.h> 2 #include <string.h> 3 4 int main(void) 5 { 6 char str[5][80]; //二维数组保存5个字符串 7 int i, j; 8 9 for (i = 0; i < 5; i++) 10 { 11 sca ...
分类:
编程语言 时间:
2019-12-20 15:19:20
阅读次数:
79
参考:https://www.pyimagesearch.com/2014/09/15/python-compare-two-images/ ...
分类:
编程语言 时间:
2019-12-20 13:25:45
阅读次数:
79
CC 03The game rock, paper, scissors is a classic tool used to make important decisions among two friends (read https://www.wikihow.com/Play-Rock,-Pape ...
分类:
编程语言 时间:
2019-12-19 13:01:43
阅读次数:
79
In-course assessment 3 (ICA 3), Autumn Term 2019 STAT0006Overview of ICA 3There are two tasks associated with this ICA. You must complete both. More d ...
分类:
其他好文 时间:
2019-12-19 12:59:33
阅读次数:
98