码迷,mamicode.com
首页 >  
搜索关键字:uva 10200 prime tim    ( 11153个结果
设置时间同步服务器与客户端
时钟同步功能简介:在Windows系统中,时钟同步是通过Windows Time服务(W32Time)完成的。W32Time通过NTP(Network Time Protocol)协议访问目标时钟同步服务器的123端口进行时间同步。服务器的地址可以在“时间与日期”设置窗口的“Internet Tim...
分类:其他好文   时间:2014-07-16 19:17:03    阅读次数:201
How Many Points of Intersection?
uva10790:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1731题意:两条水平线,分别有n,m个点,点之间两两连线,求有多少个交点。题解:手动模拟一...
分类:其他好文   时间:2014-07-16 18:46:50    阅读次数:182
UVA - 11795
状态压缩dp#include#include#include#include#include#define maxn 16using namespace std;long long dp[1<<maxn];long long weapon[1<<maxn];int robot[maxn];char ...
分类:其他好文   时间:2014-07-16 18:35:59    阅读次数:228
hdu1016Prime Ring Problem深搜
#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;int n;int prime[100];void Prime(){ for(...
分类:其他好文   时间:2014-07-16 00:58:49    阅读次数:363
Uva10474
/* E - E Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu Submit Status Practice UVA 10474 Description Where is the Marble? Raju and Meena love to play with Marbles. T...
分类:其他好文   时间:2014-07-14 17:26:26    阅读次数:269
UVa 10162 - Last Digit
题目:已知S = Σ(i^i)其中(1 分析:数论,找规律。设 i = 10*a+b 则 i^i = (10*a+b)^(10*a+b),有:             记f(i)=(i^i)% 10 =  (10*a+b)^(10*a+b)% 10 = b ^(10*a+b) {  二项式定理  }             利用f(i)找规律:             f(10*k+0)...
分类:其他好文   时间:2014-07-14 17:00:43    阅读次数:557
Ugly Numbers(1.5.8)
Time Limit:1000MS     Memory Limit:10000KB     64bit IO Format:%I64d & %I64u Submit Status Description Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence  ...
分类:其他好文   时间:2014-07-14 14:03:02    阅读次数:206
UVa 10533 - Digit Primes
题目:输出给定区间中,本身是素数,并且这个数的各位之和也是素数的数(称为位素数)的个数。 分析:数论。首先利用筛法,求出1000000内的所有的素数;然后在利用生成的素数表,             判断每个数是不是各位之和也是素数;再后求出从0开始到任意区间中包含位素数数的个数;             最后输出两个区间之差就是区间中的位素数的个数。 说明:达标法计算,查询输出。 #i...
分类:其他好文   时间:2014-07-14 11:17:54    阅读次数:214
(素数求解)I - Dirichlet's Theorem on Arithmetic Progressions(1.5.5)
Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Description If a and d are relatively prime positive integers, the arithmetic sequence begin...
分类:其他好文   时间:2014-07-13 18:53:13    阅读次数:251
uva 11195 Another queen (用状态压缩解决N后问题)
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2136 Problem A Another n-Queen Problem I guess the n-queen problem is known by every ...
分类:其他好文   时间:2014-07-13 18:16:11    阅读次数:498
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!