yum install "@Chinese
Support"System->Preferences->Input Method,勾选"Enable input method
feature",Input Method选择"Use IBus",Log Out重新登录后"ctrl+空格"即可切换输入法
分类:
其他好文 时间:
2014-06-09 00:54:37
阅读次数:
182
【题目】
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.
...
分类:
其他好文 时间:
2014-06-08 15:11:58
阅读次数:
298
循环节
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
X最近爱上了一种奇怪的游戏,就是找出一个字符串中的最小循环节。
对于最小循环节的定义:对于字符串A存在字串B,使得A是由N个完整的B组成的,那么B就是A的一个循环节,长度最小的那一个为最小循环节。
输入
多组输入。
每组输入一个字符...
分类:
其他好文 时间:
2014-06-08 09:55:32
阅读次数:
174
随机数的事
总结随机数的那点事,不断总结中......
1.产生一个随机数
srand(time(0));
x=rand();//0~RAND_MAX-1
2.生成一个[a,b]之间的随机数
x=rand()%(b-a+1)+a;
3.以概率为Px%,Py%,Pz%(Px、Py、Pz均为整数且Px+Py+Pz=100)生成三个随机数
// This functio...
分类:
其他好文 时间:
2014-06-08 09:05:21
阅读次数:
304
安装Python依赖
pip3.4 install nose
pip3.4 install selenium
pip3.4 install Appium-Python-Client
运行测试用例android_contacts.py
import os
import unittest
from appium import webdriver
from time import slee...
分类:
移动开发 时间:
2014-06-08 05:55:17
阅读次数:
482
Happy Number
Accepted : 110
Submit : 263
Time Limit : 1000 MS
Memory Limit : 65536 KB
Problem Description
Recently, Mr. Xie learn the concept of happy numb...
分类:
移动开发 时间:
2014-06-08 05:44:33
阅读次数:
264
确定比赛名次
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10604 Accepted Submission(s): 4150
Problem Description
有N个比赛队(1
I...
分类:
其他好文 时间:
2014-06-08 04:43:40
阅读次数:
285
Crixalis's Equipment
Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)
Total Submission(s) : 34 Accepted Submission(s) : 14
Font: Times New Roman | Verdana | Georgi...
分类:
其他好文 时间:
2014-06-08 04:37:14
阅读次数:
263
文件输入输出
使用文件流对象
创建文件流对象时,我们可以提供文件名(可选)。如果提供了一个文件名,则open会自动被调用:
ifstream in(ifile); //构造一个ifstream并打开给定文件
ofstream out; //输出文件流未关联到任何文件
用fstream代替iostream&
首先这里有一个头文件和一个定义的文件要使用
...
分类:
编程语言 时间:
2014-06-08 03:10:07
阅读次数:
253
Triangle LOVE
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2138 Accepted Submission(s): 898
Problem Description
Recently, scienti...
分类:
其他好文 时间:
2014-06-08 02:56:49
阅读次数:
301