码迷,mamicode.com
首页 >  
搜索关键字:oj    ( 4253个结果
南大算法设计与分析课程OJ答案(3)
问题 A: 动态中位数问题 题目描述 输入一组整数a1, a2, …, an ,每输入一个整数,输出到此时为止的中位数。 中位数定义:如果数串的大小是偶数 2j,中位数是从小到大排列的第 j 个数;如果数串的大小是奇数 2j+1,中位数是从小到大排列的第 j+1 个数。 输入一组整数a1, a2, ...
分类:编程语言   时间:2018-04-26 01:15:12    阅读次数:243
LeetCode OJ 96. Unique Binary Search Trees
先占个坑。。。 120 ...
分类:其他好文   时间:2018-04-21 00:23:50    阅读次数:123
Python OJ 从入门到入门基础练习 10 题
1、天天向上的力量: 一年365天,以第1天的能力值为基数,记为1.0。当好好学习时,能力值相比前一天提高N‰;当没有学习时,由于遗忘等原因能力值相比前一天下降N‰。每天努力或放任,一年下来的能力值相差多少呢?其中,N的取值范围是1到10,N可以是小数。 获得用户输入N,计算每天努力和每天放任365 ...
分类:编程语言   时间:2018-04-21 00:21:59    阅读次数:250
OJ模板库
近期刷了好几次的oj,好受伤好多都是相似的题目。 最长回文子串 string preprocess(string &str) { string afterProcessStr="#"; for(int i=0;i<str.size();++i) { afterProcessStr += str.su ...
分类:其他好文   时间:2018-04-20 22:10:16    阅读次数:221
LeetCode OJ 89. Gray Code
题目 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non negative integer n representing the total ...
分类:其他好文   时间:2018-04-19 12:04:34    阅读次数:125
LeetCode OJ 80. Remove Duplicates from Sorted Array II
题目 Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array nums = [1,1,1,2,2,3], Your functio ...
分类:其他好文   时间:2018-04-18 11:40:52    阅读次数:164
BZOJ 3262: 陌上花开 cdq分治 树状数组
https://www.lydsy.com/JudgeOnline/problem.php?id=3262 cdq分治板子题,一维排序,一维分治(cdq里的队列),一维数据结构(树状数组)。 学dp优化前来复习……以前好像写过这道题但是没写博客啊……在校oj上写的题都没怎么写博客,追悔莫及 1 #i ...
分类:编程语言   时间:2018-04-13 11:25:04    阅读次数:250
LeetCode OJ 73. Set Matrix Zeroes
题目 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 解答 这题太水了,根本不是medium难度,一遍就AC了。 遍历matrix,拿两个数组分别记录需要变成0 ...
分类:其他好文   时间:2018-04-13 11:10:55    阅读次数:168
Light oj 1379 -- 最短路
In Dhaka there are too many vehicles. So, the result is well known, yes, traffic jam. So, mostly people have to spend quite a time in the roads to go ...
分类:其他好文   时间:2018-04-11 16:15:05    阅读次数:152
第四次Scrum编码冲刺
1、小组成员 "舒 溢" 、 "许嘉荣 " 、 "周斌" 、 "唐 浩" "黄欣欣" 、 "刘洋江" 、 "薛思汝" 2、评测系统功能 3、最终结果及其代码仓库链接 "CCSU评测系统" "github代码仓库" 4、第四次冲刺的收获和体会 我们组选择做OJ这个项目是听从了组长的建议,觉得这是一个不 ...
分类:其他好文   时间:2018-04-11 15:43:52    阅读次数:146
4253条   上一页 1 ... 45 46 47 48 49 ... 426 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!