#include#includeusing namespace std;int main(){ int y,t; float s; cin>>y>>t; cout<<setiosflags(ios::fixed)<<setprecision(2); if(y<=4) if(t<=40) s=3...
分类:
其他好文 时间:
2014-07-02 17:48:01
阅读次数:
235
python 集成了 sqlite3 ,其接口很简单:import sqlite3db_connection = sqlite3.connect(db_filename)db_cursor = db_connection.cursor()db_cursor.execute('select * fro...
分类:
数据库 时间:
2014-07-02 17:46:35
阅读次数:
306
[代码] [Java]代码view sourceprint?001package SAXparse;002 003 004import java.io.FileInputStream;005import java.lang.reflect.Array;006import java.lang.refl...
分类:
编程语言 时间:
2014-07-02 17:44:02
阅读次数:
332
给你一个迷宫一个起点和一个终点,问你能否走T步刚好到达终点,不能重复走,并且只有4个方向显然这是一个dfs,虽然N最大只有7,但是裸的dfs复杂度还是太高了,因此要进行一些剪枝1.如果T比图上所有的可走点还要大,肯定是不可行的。这个可以避免dfs整张图。2.奇偶剪枝,有性质当前点(x,y)到目标点(...
分类:
其他好文 时间:
2014-07-02 17:42:47
阅读次数:
195
Team USA Soccer Gear Sales Get World Cup AssistMaybe there's something to all that talk aboutAmerica catching the soccer bug. The recent success of th...
分类:
其他好文 时间:
2014-07-02 17:38:55
阅读次数:
258
Google Hacking指利用google搜索引擎搜索信息来入侵的技术和行为intitle 把网页的URL的某个字符作为搜索条件intext 把网页中的正文内容中的某个字符作为搜索条件inurl 用户搜索网页上包含的URLfiletype 指定类型的文件cache 搜索关于某些内容的缓存还有一些...
分类:
其他好文 时间:
2014-07-02 17:36:52
阅读次数:
321
1 #include 2 using namespace std; 3 int main(){ 4 int a,b; 5 char s; 6 while(cin>>a){ 7 cin>>s>>b; 8 if(s=='+') 9 ...
分类:
其他好文 时间:
2014-07-02 17:36:14
阅读次数:
149
#!/usr/bin/env python#coding=utf-8import traceback try: 1/0except Exception, e: print e print traceback.format_exc()
分类:
编程语言 时间:
2014-07-02 17:34:59
阅读次数:
266
a=Nonefor i in a: print('zheli de i shi %d' % i)报错:TypeError: 'NoneType' object is not iterable除非你提供你自己的return语句,每个函数都在结尾暗含有return None语句。关于DocStri...
分类:
编程语言 时间:
2014-07-02 17:31:36
阅读次数:
189
1 #include 2 using namespace std; 3 int main(){ 4 float o,h,l,c; 5 while(cin>>o>>h>>l>>c){ 6 if(co) 9 couto&&h>c)14 ...
分类:
其他好文 时间:
2014-07-02 17:29:47
阅读次数:
264