hdu 2795 的传送门–>Problem Description
At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible...
分类:
其他好文 时间:
2015-08-08 13:38:45
阅读次数:
141
Problem Description
At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcements ...
分类:
其他好文 时间:
2015-08-08 12:05:48
阅读次数:
102
方式一、// 在这里面绘制,绘图的内容,因为只有在这里面才能获取跟当前view相关联的图形上下文。// 在这个view第一次即将显示的时候调用。// rect 要画图控件的bonds- (void)drawRect:(CGRect)rect{ // 1、获取跟当前控件相关联的图形上下文 ...
分类:
其他好文 时间:
2015-08-07 00:05:39
阅读次数:
116
1.获取保存截图文件的路径,暂时选定为桌面
//把截图的文件保存到桌面
virtual BOOL CaptureLolToDesktop(HWND hWnd)
{
Sleep(1*1000);
LPRECT lprc = new RECT;
GetWindowRect(hWnd,lprc);
std_string strTime;
DWORD llocaltime = GetTick...
分类:
其他好文 时间:
2015-08-06 18:27:18
阅读次数:
126
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet...
分类:
移动开发 时间:
2015-08-06 17:02:18
阅读次数:
143
UILabelUILabel是一个只读文本视图,可以使用该视图创建若干行静态文本。常见属性和方法:1、创建CGRectrect=CGRectMake(100,200,50,50);UILabel*label=[[UILabelalloc]initWithFrame:rect];2、text//设置和读取文本内容,默认为nillabel.text=@”文本信息”;//设置内容NSLog(@..
分类:
其他好文 时间:
2015-08-06 15:16:26
阅读次数:
131
题目大意:计算a1^a2^a3^a4......^an模m的值。题目解析:幂取模运算的结果一定有周期。一旦找到周期就可把高次幂转化为低次幂。有降幂公式 (a^x)%m=(a^(x%phi(m)+phi(m))%m x>=phi(m)其中,phi()函数是欧拉函数。代码如下: 1 # ...
分类:
其他好文 时间:
2015-08-06 14:57:54
阅读次数:
165
这周我们学习了UI,下面是我的一些学习笔记://获得屏幕满屏时的数值CGRectrect=[UIScreenmainScreen].bounds;//创建一个Window让他显示在屏幕上self.window=[[UIWindowalloc]initWithFrame:rect];//设置window的背景颜色self.window.backgroundColor=[UIColorlightGrayColor];..
分类:
其他好文 时间:
2015-08-06 02:13:06
阅读次数:
154
一、画线只有在drawRect中才能获取到跟view相关联的上下文- (void)drawRect:(CGRect)rect {}一条线 // 1.获取跟当前View相关联的layer上下文(画板) // 总结:目前获取的所有上下文都是以UIGraphics开头 // CGCont...
分类:
移动开发 时间:
2015-08-04 22:42:40
阅读次数:
287
SeedingTime Limit:2 Seconds Memory Limit:65536 KBIt is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rect...
分类:
其他好文 时间:
2015-08-04 20:47:52
阅读次数:
126