- 博客(7)
- 资源 (5)
- 问答 (2)
- 收藏
- 关注
原创 hdu2098分拆素数和
hdu2098 分拆素数和Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 26497 Accepted Submission(s): 11599Problem Description 把一个偶数拆成两个不同素数的和,有几种拆法呢
2015-08-11 09:44:20 259
原创 分拆素数和
#include#includeusing namespace std;bool isPrimer(int n){ int m=sqrt(n); int i; for(i=2;i>n&&n){ num=0; for(i=2;i<n/2;i++){ if(isPrimer(i)&&isPrimer(n-i)) num++; } cout<<num<<endl; } }
2015-08-10 22:01:12 275
原创 hdu1054
hdu树形DPStrategic GameProblem Description Bob enjoys playing computer games, especially strategic games, but sometimes he cannot find the solution fast enough and then he is very sad. Now he has the fo
2015-08-02 01:32:05 320
原创 hdu1509
hdu优先队列Windows Message QueueProblem Description Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process,
2015-08-02 01:19:28 300
原创 hdu1057
hdu1057 hdu水题A New Growth IndustryTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 1488 Accepted Submission(s): 606 Problem DescriptionProb
2015-08-02 00:58:40 764
原创 hdu2025
hdu2025 查找最大元素 Problem Description 对于输入的每个字符串,查找其中的最大字母,在该字母后面插入字符串“(max)”。 Input 输入数据包括多个测试实例,每个实例由一行长度不超过100的字符串组成,字符串仅由大小写字母构成。 Output 对于每个测试实例输出一行字符串,输出的结果是插入字符串“(max)”后的结果,如果存在多个最大的字母,就在每一个
2015-08-02 00:25:57 518
原创 hdu2000
按ASCII码的大小从小到大将输入的字符输出,直接比较即可 hdu2000includeusing namespace std; int main(){ char s[3],temp; while(cin>>s[0]){ cin>>s[1]>>s[2]; for(int i=0;i<3;i++){ for(int j=i+1;j<3;j++){
2015-08-02 00:16:19 554
MainActivity.this.year的作用是什么?
2015-09-19
java中的的nextLine怎么用?
2014-12-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人