水题,注意数据范围#include using namespace std;int main(){
long long n,a; cin >> n; long long sum =(n*(n+1))>>1; for(int i = 0
; i >a; sum ...
分类:
其他好文 时间:
2014-06-10 12:47:58
阅读次数:
233
1.os模块2.os.path 模块3.实例1. os模块
对文件系统的访问大多通过python的os模块实现,其中os 模块负责大部分的文件系统操作,包括删除/重命名文件,遍历目录树,管理文件访问权限等。
2.os.path 模块,os.path完成一些针对路径名的操作,包括管理和操作文件路径名中...
分类:
编程语言 时间:
2014-06-10 12:38:22
阅读次数:
488
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-10 12:08:55
阅读次数:
232
想换工作的朋友可以试着做一下:1.
CLR、CTS、CLS分别是什么意思?公共语言运行库,通用类型系统,公共语言规范2.什么是基元类型?由编译器直接支持的数据类型称为基元类型.例如:C#中的int,string等等就是,实际运行过程中被映射为FCL中对应的类型(java中叫做包装类)如:System...
分类:
Web程序 时间:
2014-06-10 11:58:40
阅读次数:
724
奇偶校验位是一个表示给定位数的二进制数中1的个数是奇数还是偶数的二进制数。奇偶校验位是最简单的错误检测码。A
parity bit, or check bit is a bit added to the end of a string of binary code
that indicates wh...
分类:
Web程序 时间:
2014-06-10 11:51:03
阅读次数:
288
在代码中用到类型转换的时候,是一个字符,然后当用户在网页中输入的是字符串,字符转换成字符串的方法是:String.valueOf(char
c);就好了这样在写验证码的时候,网页端的就是字符串形式static StringString.valueOf(char
a)返回char参数的字符串表现形式s...
分类:
编程语言 时间:
2014-06-10 11:47:49
阅读次数:
202
【程序1】
题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第四个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子有多少对?算法一:public
class ArithmeticTest1 { public static void main(String[]...
分类:
其他好文 时间:
2014-06-10 11:23:15
阅读次数:
153
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
Clarification:
What constitutes a word?
A sequence of non-space ch...
分类:
其他好文 时间:
2014-06-10 11:12:06
阅读次数:
185
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-06-10 10:52:03
阅读次数:
180
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#define LL long long 5 using namespace std; 6 7 bool
dp[505][505];//已经用了i个人,已分配出j个任务 8 LL S[505]; 9 ...
分类:
其他好文 时间:
2014-06-10 10:39:06
阅读次数:
159