??
1089
#include
int main()
{
int m,n;
while(~scanf("%d %d",&m,&n))
{
printf("%d\n",m+n);
}
return 0;
}
1090
#include
int main()
{
int l;
scanf("%d",&l);
while(l--)
{
...
分类:
其他好文 时间:
2015-08-07 19:58:55
阅读次数:
125
题目Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactl...
分类:
其他好文 时间:
2015-08-07 19:58:54
阅读次数:
72
Given an array of n integers where n > 1, nums,
return an array output such that output[i] is
equal to the product of all the elements of nums except nums[i].
Solve it without division and in O...
分类:
其他好文 时间:
2015-08-07 19:56:16
阅读次数:
112
//指向字符型数据的指针变量
测试代码:
#include
using namespace std;
int main()
{
char **p;
char *name[ ]={"basic","fortran","c++","pascal","cobol"};
p=name+2;
cout<<*p<<endl;
cout<<**p<<endl;
return 0;
}
运行...
分类:
其他好文 时间:
2015-08-07 19:46:52
阅读次数:
113
如果想让程序异步等待一段时间,可以考虑使用Task.Delay方法。 比如,在单元测试中模拟一个异步操作。 static async Task DelayedResult(T result, TimeSpan delay) { await Task.Delay(delay); return resu...
分类:
其他好文 时间:
2015-08-07 19:20:26
阅读次数:
158
我们已经接触过函数(function)的参数(arguments)传递。当时我们根据位置,传递对应的参数。我们将接触更多的参数传递方式。回忆一下位置传递:def f(a,b,c): return a+b+cprint(f(1,2,3))在调用f时,1,2,3根据位置分别传递给了a,b,c。1....
分类:
编程语言 时间:
2015-08-07 19:19:57
阅读次数:
134
uint32_t reverseBits(uint32_t n) { auto strBits = bitset(n).to_string(); return static_cast(bitset(string(strBits.crbegin(), strBits.crend())).t...
分类:
其他好文 时间:
2015-08-07 18:59:36
阅读次数:
99
1.加载缩略图/*** 按照路径加载图片* @param path 图片资源的存放路径* @param scalSize 缩小的倍数* @return*/public static Bitmap loadResBitmap(String path, int scalSize) { Bitmap...
分类:
移动开发 时间:
2015-08-07 18:52:24
阅读次数:
158
①在ViewAllPlat项目中包com.baosight.viewall.common下建立类FileTool,继承Applet,类中添加如下方法:/** * @author DongMingWang * @time 20150807 * @return ...
分类:
其他好文 时间:
2015-08-07 18:39:22
阅读次数:
173
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 ...
分类:
其他好文 时间:
2015-08-07 17:57:08
阅读次数:
109