码迷,mamicode.com
首页 >  
搜索关键字:put    ( 16494个结果
HDU-4973-A simple simulation problem.(二分+树状数组)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:13:03    阅读次数:321
HDU-4937-A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:12:13    阅读次数:273
struts2_9_访问或添加request/session/application属性
web.xml文件1中相同。 1)HelloAction类中的代码: public class HelloAction { public String execute() { ActionContext ctx = ActionContext.getContext(); // 仅仅只是访问和添加三个范围属性使用该方法 // ctx.getApplication().put(...
分类:移动开发   时间:2014-08-24 10:20:52    阅读次数:203
几个集合类的比较
1.Hashtable和HashMap 不同点总结如下 ① Hashtable是Dictionary的子类,实现了Map接口;HashMap是AbstractMap的子类,是Map接口的一个实现类; ② Hashtable中的方法是同步的,大多数方法如put, get都用用synchronized关键字修饰。而HashMap是线程不安全的。在多线程程序中,可以不添加额外操作就可以安全...
分类:其他好文   时间:2014-08-23 21:42:12    阅读次数:213
HashMap和HashTable 学习
1. HashMap1) hashmap的数据结构 Hashmap是一个数组和链表的结合体(在数据结构称“链表散列“),如下图示: 当我们往hashmap中put元素的时候,先根据key的hash值得到这个元素在数组中的位置(即下标),然后就可以把这个元素放到对应的位置中了。如果这个元素所在的位.....
分类:其他好文   时间:2014-08-23 17:41:11    阅读次数:140
如何在Rails中执行Get/Post/Put请求
require 'open-uri'require 'json'require 'net/http'class CoupleController [:raw_data_put] def raw_date_get #如果有GET请求参数直接写在URI地址中 begin uri...
分类:其他好文   时间:2014-08-22 12:41:06    阅读次数:358
PUT 还是 POST ?
创建,更新与HTTP幂等性构建基于REST API的开发者对于何时使用HTTP PUT与POST有很大的误解与困惑。有些人认为POST 应用于创建资源,而PUT则用于更新资源。其他人则认为PUT用于创建而POST用于更改资源。这两种说法都不太确切。通常,开发者将每个HTTP方法与CRUP操作一一对应...
分类:其他好文   时间:2014-08-22 12:23:26    阅读次数:281
ASIHTTPRequest下载数据
本文为大家介绍了iOS开发ASIHTTPRequest下载数据的内容,其中包括设定将服务器响应数据直接下载到文件,处理收到的服务器响应数据,PUT请求、获取HTTP状态码,读取响应头,处理文本编码,处理重定向等等内容。将服务器响应数据直接下载到文件如果你请求的资源很大,你可以直接将数据下载到文件中来...
分类:其他好文   时间:2014-08-21 22:30:14    阅读次数:211
HDU4960:Another OCD Patient
Problem Description Xiaoji is an OCD (obsessive-compulsive disorder) patient. This morning, his children played with plasticene. They broke the plasticene into N pieces, and put them in a line. Eac...
分类:其他好文   时间:2014-08-20 16:23:12    阅读次数:210
It Is A Huge Beanbag Chair
The rich material and exquisite craftsmanship make it hard to put my hands. While it is true that Hermes bag stands clearly above all the other luxury...
分类:其他好文   时间:2014-08-20 11:45:46    阅读次数:387
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!