题目链接:https://vjudge.net/problem/HDU-1074 Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher ...
分类:
其他好文 时间:
2020-06-05 13:08:02
阅读次数:
72
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1062 题目描述: 伊格纳修斯喜欢用相反的方式写词。给定由Ignatius编写的单行文本,您应该反转所有单词,然后输出它们。 输入值 输入包含几个测试用例。输入的第一行是单个整数T,它是测试用例的数量。随 ...
分类:
其他好文 时间:
2020-04-05 16:59:34
阅读次数:
90
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一 ...
分类:
其他好文 时间:
2020-03-25 21:03:26
阅读次数:
66
Ignatius and the Princess IV 先搬中文 Descriptions: 给你n个数字,你需要找出出现至少(n+1)/2次的数字 现在需要你找出这个数字是多少? Input 本题包含多组数据,请处理到EOF: 每组数据包含两行。 第一行一个数字N(1<=N<=999999) , ...
分类:
其他好文 时间:
2020-02-26 16:50:24
阅读次数:
59
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the ho ...
分类:
其他好文 时间:
2020-02-09 20:41:02
阅读次数:
59
"OK, you are not too bad, em... But you can never pass the next test." feng5166 says. "I will tell you an odd number N, and then N integers. There wil ...
分类:
其他好文 时间:
2020-02-02 13:45:34
阅读次数:
51
传送门 Problem Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10, ...
分类:
其他好文 时间:
2020-02-01 19:17:10
阅读次数:
87
Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡, ...
分类:
其他好文 时间:
2020-02-01 12:48:49
阅读次数:
69
#include<iostream> #include<cstring> #include<cmath> #include<cstdio> #include<algorithm> #include<stack> #include<queue> using namespace std; const i ...
分类:
其他好文 时间:
2020-01-28 15:34:42
阅读次数:
71
咳咳,这个是为了赶量 需要注意的就是输入方式,别的也没什么难点 Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Igna ...
分类:
其他好文 时间:
2020-01-27 15:40:56
阅读次数:
55