摘要: 如: Enum ShowPosition { 首页 = 0,一级分类页 = 1,二级分类页 = 2 } 想获得汉字对应的数字,可用GetHashCode() html展示如下:循环枚举 @foreach (B2B.Enum.ShowPosition pd in Enum.GetValues(type 阅读全文
posted @ 2018-05-22 08:47 午夜阳光~ 阅读(1493) 评论(8) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-11-29 17:46 午夜阳光~ 阅读(524) 评论(1) 推荐(0) 编辑
摘要: Prime TimeEuler is a well-known matematician, and, among many other things, he discovered that the formula n 2 + n + 41 produces a prime for 0 ≤ n #in... 阅读全文
posted @ 2015-11-20 17:26 午夜阳光~ 阅读(480) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/540/BSchool MarksTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeF... 阅读全文
posted @ 2015-11-20 16:11 午夜阳光~ 阅读(250) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/problemset/problem/540/CIce CaveTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForce... 阅读全文
posted @ 2015-11-19 17:57 午夜阳光~ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=3250Bad Hair DayTime Limit:2000MSMemory Limit:65536KTotal Submissions:15985Accepted:5404DescriptionSome of Farmer John'sNcow... 阅读全文
posted @ 2015-11-19 15:34 午夜阳光~ 阅读(265) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3183A Magic LampTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submiss... 阅读全文
posted @ 2015-11-19 12:50 午夜阳光~ 阅读(228) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4325FlowersTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others)Total Submission(s... 阅读全文
posted @ 2015-11-18 15:25 午夜阳光~ 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5500Reorder the BooksTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total ... 阅读全文
posted @ 2015-11-18 11:31 午夜阳光~ 阅读(133) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=2891Strange Way to Express IntegersTime Limit:1000MSMemory Limit:131072KTotal Submissions:11970Accepted:3788DescriptionElina... 阅读全文
posted @ 2015-11-13 18:03 午夜阳光~ 阅读(144) 评论(0) 推荐(0) 编辑