题意:大概是求前n个数的最大公倍数。解题思路:筛法+质因子分解,敲玩就去睡觉了,没想到没优化被cha了。。。解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #line 7 "ThePermutationGame.cpp...
分类:
其他好文 时间:
2015-03-10 08:58:27
阅读次数:
387
今天完成注册,开始我的日记征程。准备基本掌握语言:html、js、css、jquery、php用时半年。并在这段时间期间,学习一些其他知识。给予比我更小白的选手一些代码以及文件。半年时间,可能有的人看了会不信。我自己也是没有太大把握的,不过我天天会努力学习,减少学会这些语言所需时间。HERE WE ...
分类:
其他好文 时间:
2015-03-09 22:09:15
阅读次数:
140
英语常见介词错误用法,你有犯过吗?1:错:come to here. 对:come here. 过来。here ,there,home之类的副词,前面不用介词in ,at,(但可以加from,比如from home,from here),直接跟在动词come 后面就可以了。2:错:loo...
分类:
其他好文 时间:
2015-03-09 22:04:46
阅读次数:
171
S:All right, everybody. That is our show. Here it is, your Moment of Zen.N: Officials in India want to set records straight,R: Stewart. Hey, Stewart, ...
分类:
其他好文 时间:
2015-03-09 14:05:58
阅读次数:
129
链接:click here
题意:
给出一个三角形,求三角形内的整点;
皮克定理:S=a/2+b-1; S为多边形面积;a为多边形边上的点; b为多边形内的点;
a为边上的点可以由欧几里得定理gcd(x1-x0,y1-y0)求得点数;
另编程网站计蒜客35题也是一样的求法,只不过给出两点,实际写的话改成注释的那块就可以,链接:click here
代码:
#include
#i...
分类:
其他好文 时间:
2015-03-08 17:17:33
阅读次数:
134
1991. The battle near the swamp
Time limit: 1.0 second
Memory limit: 64 MB
Gungan: Jar Jar, usen da booma!
Jar Jar: What? Mesa no have a booma!
Gungan: Here. Taken dis one.
In the ...
分类:
其他好文 时间:
2015-03-08 13:02:11
阅读次数:
171
1 题目Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are...
分类:
其他好文 时间:
2015-03-06 23:25:23
阅读次数:
164
Default (and possibly architecture dependents) HAL modules go here. libhardware.so eventually should contain *just* the HAL hub(hardware.c), everythin...
分类:
移动开发 时间:
2015-03-05 16:33:38
阅读次数:
160
Problem Description
Here is a famous story in Chinese history.
"That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse racing with the king and others."
"Both of Tian and the king have three horses in...
分类:
其他好文 时间:
2015-03-04 17:05:30
阅读次数:
203
windows创建对话框的源代码
定义一个成员变量,当在调用DOMODAL()的时候,便把要加到COMBOBOX里面的数据给写进这个成员变量,然后在ONINITDIALOG里面对COMBOBOX进行初始化
void CMyView::OnShow()
{
// TODO: Add your command handler code here
CDIALOG1 dlg;
dlg.C...