package my;public class MyJava { public static void main(String[] args) { // TODO Auto-generated method stub int[] num = {10,5,13,22,87,44}; int m...
分类:
其他好文 时间:
2014-10-27 01:46:18
阅读次数:
180
package my;public class MyJava { public static void main(String[] args) { // TODO Auto-generated method stub int[] num = {10,5,13,22,87,44}; int t...
分类:
编程语言 时间:
2014-10-27 01:43:20
阅读次数:
202
题目信息:给出n,m,求n个数的按字典序排列的第m个序列
http://acm.hdu.edu.cn/showproblem.php?pid=1027
AC代码:
/**
*全排列的个数(次序)
*/
#include
#include
#include
int a[1001],x;
using namespace std;
void print(int n)...
分类:
其他好文 时间:
2014-10-26 19:49:03
阅读次数:
178
var_dump 判断一个变量的类型与长度如:echo仅输出变量或字串print_r输出数组 a [1] => b [2] => c ) ?>
分类:
Web程序 时间:
2014-10-26 18:16:40
阅读次数:
160
#include #include int main (void){ int num,answer,count=0; srand(time(NULL)); answer = rand()%100+900; while (1){ printf("请输入您的数字:\n"); scanf("%...
分类:
其他好文 时间:
2014-10-26 16:51:30
阅读次数:
229
class Song(object): def __init__(self, lyrics): self.lyrics = lyrics def sing_me_a_song(self): for line in self.lyrics: print linehappy_bda...
分类:
其他好文 时间:
2014-10-26 12:59:54
阅读次数:
134
Socket的介绍就不多说了,网上都能搜到,直接说脚本,要实现FTP的功能要有服务器端和客户端,服务器端:importSocketServer
importcommands
importtime
classMySockServer(SocketServer.BaseRequestHandler):
defhandle(self):
print"Gotanewconnfrom",self.client_address
wh..
分类:
编程语言 时间:
2014-10-26 06:56:19
阅读次数:
192
1 'value'); 25 print_r($arr); 26 27 //能够是html和php分离的模板 28 //smarty,phplib 29 30 //使用那些工具进行版本控制 31 //svn git cvs 32 33 //如何实现字符串反转 34 //英文 35 $a="...
分类:
Web程序 时间:
2014-10-26 01:32:30
阅读次数:
194
HDU 4791 & ZOJ 3726 Alice's Print Service (数学 打表)...
分类:
其他好文 时间:
2014-10-25 20:10:04
阅读次数:
219
from sys import exitdef gold_room(): print "This room is full of gold. How much do you take?" next = raw_input("> ") if "0" in next or "1" in...
分类:
其他好文 时间:
2014-10-25 15:45:58
阅读次数:
169