![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
大一纯萌新的ACM刷题心路历程
不想边刷边做笔记了,干脆写博客吧,回顾也比较方便
叶枘w
中九 CS 能力支撑不住野心
展开
-
ACM菜鸟刷题——HDU 2072 统计不同的单词个数
先上题(摘录)有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。题意很简单,即统计一句话中不同单词的个数(以空格隔开)上AC代码#include<iostream>#include<cstdio>#include<sstream>#include<set>using namespace std;int main(){ string s; while(getline(cin,原创 2020-11-17 00:02:14 · 481 阅读 · 0 评论 -
ACM刷题心路历程—HDU 1197 不同进制下的各位和
先上题目(摘录)Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and also equals the sum of its digits when represented原创 2020-11-15 22:21:10 · 139 阅读 · 0 评论 -
ACM刷题心路历程—HDU 2734
先上题目(摘录)A Quicksum is the sum of the products of each character’s position in the packet times the character’s value. A space has a value of zero, while letters have a value equal to their position in the alphabet. So, A=1, B=2, etc., through Z=26. Here a原创 2020-11-15 21:44:38 · 140 阅读 · 0 评论