码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
SPOJ Problem 2727:Army Strength
题目在此 http://www.spoj.com/problems/ARMY/总体来说就是求最大值。。#include#includeint x,n,t,i,a,b;int max,pos;int main(){ scanf("%d",&t); while(t--){ sc...
分类:其他好文   时间:2015-03-07 09:02:25    阅读次数:176
Next Permutation
https://oj.leetcode.com/problems/next-permutation/Implement next permutation, which rearranges numbers into the lexicographically next greater permuta...
分类:其他好文   时间:2015-03-06 22:06:43    阅读次数:151
SPOJ Problem 9948:Will it ever stop
如题。。http://www.spoj.com/problems/WILLITST/#includelong long n;int main(){ scanf("%lld",&n); while(n>1){ if (n==3||n==6){printf("NIE\n");r...
分类:其他好文   时间:2015-03-06 22:01:34    阅读次数:266
SPOJ Problem 379:Ambiguous Permutations
http://www.spoj.com/problems/PERMUT2/如题。。#include#includeint n,i,j;int a[100005];int main(){ while(scanf("%d",&n)&&n){ for (i=1;i<=n;i++){ ...
分类:其他好文   时间:2015-03-06 20:39:23    阅读次数:154
机器学习 Python实现 贝叶斯算法
[['my','dog','has','flea','problems','help','please'],    0  ['maybe','not','take','him','to','dog','park','stupid'],  1  ['my','dalmation','is','so','cute','I','love','him'],          0 ...
分类:编程语言   时间:2015-03-06 12:47:43    阅读次数:262
March 3rd 2015 <11:31>
spoj 1167 http://www.spoj.com/problems/MINCOUNT/一个高度为h的正立三角形,由硬币拼成,现在把这个三角形通过一动硬币位置变成倒立等大的三角形,求最少移动硬币数。其实也就是求正立与倒立两个三角形最小不重叠部分,列几个例子我发现,重叠部分最大是三分之二,即不...
分类:其他好文   时间:2015-03-06 12:20:51    阅读次数:128
SPOJ Problem 302:Count on Cantor
题目不复述了,自己看吧。http://www.spoj.com/problems/CANTON/一如既往的暴力。。#includeint n,i,j,s,ans;int main(){ scanf("%d",&n); while(n--){ scanf("%d",&s); ...
分类:其他好文   时间:2015-03-05 22:06:15    阅读次数:138
Intersection of Two Linked Lists
https://oj.leetcode.com/problems/intersection-of-two-linked-lists/Write a program to find the node at which the intersection of two singly linked list...
分类:其他好文   时间:2015-03-05 20:53:54    阅读次数:141
Flatten Binary Tree to Linked List
https://oj.leetcode.com/problems/flatten-binary-tree-to-linked-list/Given a binary tree, flatten it to a linked list in-place.For example,Given ...
分类:其他好文   时间:2015-03-05 16:22:32    阅读次数:192
ZOJ3228---Searching the String(AC自动机)
Little jay really hates to deal with string. But moondy likes it very much, and she’s so mischievous that she often gives jay some dull problems related to string. And one day, moondy gave jay another...
分类:其他好文   时间:2015-03-05 14:48:39    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!