问题陈述: 杭州电子科技大学HANGZHOU DIANZI UNIVERSITY Online Judge Problem - 1004问题解析: 输出每组数据中出现次数最多的颜色。代码详解: 1 #include 2 #include 3 #include 4 5 using na...
分类:
其他好文 时间:
2015-02-09 00:43:54
阅读次数:
267
问题陈述: 杭州电子科技大学 HANGZHOU DIANZI UNIVERSITY Online Judge Problem - 1002代码详解(Java): import java.io.BufferedInputStream;import java.math.BigInteger;impo.....
分类:
其他好文 时间:
2015-02-08 21:50:48
阅读次数:
103
Solution to the n Queens Puzzle
Time Limit: 1000MS
Memory Limit: 131072K
Total Submissions: 3494
Accepted: 1285
Special Judge
Description
The eight queens puz...
分类:
其他好文 时间:
2015-02-07 09:13:07
阅读次数:
170
Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge).In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... +...
分类:
编程语言 时间:
2015-02-06 20:27:57
阅读次数:
167
这一系列的练习主要在Virtual Judge上进行,题目为小白书上的题目推荐。UVa 10055注意两个数的大小关系,水题。#include using namespace std;int main(){ long long x, y; while(cin >> x >> y) { if(x >....
分类:
其他好文 时间:
2015-02-06 18:36:33
阅读次数:
176
1035. Password (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo prepare for PAT, the judge sometimes has to generate random passwords ...
分类:
其他好文 时间:
2015-02-05 17:48:11
阅读次数:
190
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords ...
分类:
其他好文 时间:
2015-02-04 18:02:49
阅读次数:
154
Duty Free Shop
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 1145
Accepted: 452
Special Judge
Description
Pedro travelled to Europe to take part in t...
分类:
其他好文 时间:
2015-02-03 11:17:03
阅读次数:
130
#include
#include
int judge(int n)
{
int i,k;
for(i=2,k=1;i
if(n%i==0)
{
k=0;
break;
}
return k;
}
int main()
{
int N,M,i,a...
分类:
其他好文 时间:
2015-02-02 21:31:29
阅读次数:
121
感觉Leetcode出书了以后judge速度快了不少,可是新出的题目质量不大好Given an array of sizen, find the majority element. The majority element is the element that appears more than?...
分类:
其他好文 时间:
2015-02-02 15:33:53
阅读次数:
124