- 博客(3)
- 收藏
- 关注
原创 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 492
原创 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 165
原创 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 159
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人