码迷,mamicode.com
首页 >  
搜索关键字:second    ( 4896个结果
CodeForces 546 A - Soldier and Bananas
题目链接:click here~~ 【题目大意】 A soldier wants to buy w bananas in the shop. He has to pay k dollars for the first banana, 2k dollars for the second one and so on (in other words, he has to pay i·k do...
分类:其他好文   时间:2015-05-27 10:03:12    阅读次数:206
Codeforces Round #304 (Div. 2)——D素数筛+dp——Soldier and Number Game
Two soldiers are playing a game. At the beginning first of them chooses a positive integernand gives it to the second soldier. Then the second one tri...
分类:其他好文   时间:2015-05-26 21:06:35    阅读次数:198
URAL 2002. Test Task (阅读理解)
2002. Test Task Time limit: 0.5 second Memory limit: 64 MB It was an ordinary grim October morning. The sky was covered by heavy gray clouds. It was a little rainy. The rain drops fell on the...
分类:其他好文   时间:2015-05-25 20:27:31    阅读次数:217
lua 时间转化
1、 把时间 秒,转化为xx天xx时xx分xx秒 的形式 --把时间 秒,转化为xx天xx时xx分xx秒 的形式 function convertTimeForm(second) local timeDay = math.floor(second/86400) local timeHour = math....
分类:其他好文   时间:2015-05-25 18:46:08    阅读次数:159
输出链表中倒数第k个结点
题目:输入一个单向链表,输出该链表中倒数第k个结点。最后一个结点为倒数第一个结点。思路:1.首先遍历链表的长度获得链表的length,则它的倒数第k个结点就是正数length-k+1个结点,但这需要遍历链表两次2.使用两个指针可以实现遍历一次,first指针指向头结点,second指针指向first...
分类:其他好文   时间:2015-05-25 16:32:02    阅读次数:99
codeforce Round304 div.2 D
题意: Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one tries to make maximum possible number of ro...
分类:其他好文   时间:2015-05-23 14:18:31    阅读次数:174
Android studio新建activity运行出错解决方法
新建activity分以下几部: (1)在 /src/main/res/layout/ 中新建activity_second.xml (2)在 /src/main/java 中新建 SecondActivity.java ,且内容如下:public class SecondActivity extends Activity{ protected void onCreate(Bundle...
分类:移动开发   时间:2015-05-21 09:13:19    阅读次数:613
[LeetCode][SQL]Second Highest Salary
https://leetcode.com/problems/second-highest-salary/Second Highest SalaryWrite a SQL query to get the second highest salary from theEmployeetable.+---...
分类:数据库   时间:2015-05-21 01:19:24    阅读次数:283
spark streaming限制吞吐
使用spark.streaming.receiver.maxRate这个属性限制每秒的最大吞吐。官方文档如下:Maximum rate (number of records per second) at which each receiver will receive data. Effective...
分类:其他好文   时间:2015-05-19 12:36:22    阅读次数:226
【ThinkingInJava】43、与动态代理混合的装饰器模式
//: net/mindview/util/TwoTuple.java package net.mindview.util; public class TwoTuple { public final A first; public final B second; public TwoTuple(A a, B b) { first = a; second = b; } public...
分类:编程语言   时间:2015-05-19 08:54:56    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!