![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杭电水题
小小小酥
生活中的每一件事都可以用三个字总结:会过去
展开
-
HDOJ1509数据结构
此题要注意以下一句话: Note that one message can appear twice or more and if two messages have the same priority, the one comes first will be processed first.(i.e., FIFO for the same priority.) Process to the e原创 2013-11-20 19:53:18 · 623 阅读 · 0 评论 -
HDOJ2017字符串统计
题意十分简单,思路只要判断每个字符是不是数字就可以,我的代码十分易于理解,虽然没有技术含量。(可以写一个函数将判断的十个数字封装起来,这样会好看很多) #include #include #include using namespace std; int main() { string a; int n; cin>>n; while(n--)原创 2013-11-07 16:14:57 · 659 阅读 · 0 评论 -
HDOJ2030 汉字统计
Attention:汉字的ascII码为负数 #include #include #include using namespace std; char a[1000]; int main() { int n; cin>>n; getchar(); while(n--) { gets(a); int原创 2013-11-07 17:20:32 · 495 阅读 · 0 评论 -
HDOJ2015 偶数求和
思路:当nm时,分两种情况,n%m==0和!=0 #include #include using namespace std; int main() { int n,m; int sum,ans; while(cin>>n>>m) { sum=0; ans=0; if(n原创 2013-11-07 21:49:22 · 568 阅读 · 0 评论