- 博客(7)
- 收藏
- 关注
原创 NSUOJ 1105 去掉双斜杠注释
Descript 将C++程序代码中的双斜杠注释去掉。 Input 输入数据中含有一些符合C++语法的代码行。需要说明的是,为了方便编程,规定双斜杠注释内容不含有双引号,源程序中没空行。保证每行不超过1000个字符 Output 输出不含有双斜杠注释的C++代码,除了注释代码之外,原语句行格式不变。 Sample Input //=================...
2019-07-01 17:17:15
516
原创 NSUOJ 2697 <8>
Description 众所周知,飛機飛过天空学长喜欢听李志的歌(听天空之城就知道为什么了),连2016年发行的公益专辑《8》也不例外(但是大多数人难以接受)。大数nsir也很喜欢这张专辑,nsir很大,他可以从0到10100之间任意改变,当他听到这张专辑的时候他在想一个问题,他想让自己每一位的数字重新排列,这个排列后的new_nsir能够被8整除,问最大的new_nsir是多少。如果不满足,ne...
2019-07-01 16:53:41
482
原创 NSUOJ 2763 田径场上的字符串
Description 给定一个字符串,只含有可打印字符,通过删除若干字符得到新字符串,新字符串必须满足两个条件:原字符串中出现的字符,新字符串也必须包含。 新字符串中所有的字符均不相同。新字符串的字典序是满足上面两个条件的最小的字符串。 Input 多组输入: 仅一行,有一个只含有可打印字符的字符串 s。长度小于等于1e5 Output 在一行输出字典序最小的新字符串。 Sample Input...
2019-07-01 15:38:58
673
原创 NSUOJ 2586 弟弟or哥哥
闲聊群里有一个初三的小哥哥,有的人觉得别人才初三,不应该叫他小弟弟吗?哈哈哈。 如果别人问的问题比较简单,那么他应该是一个弟弟。如果问的题我们解决不了那可能就得叫他哥哥了。对吧。 今天这位小“哥哥”又来问问题了。题是这样的: 有n座山,他们连在一起成一条直线,接着从左往右给出每座山的高度a[i],现在的问题是让你求的每座山右边的第一个比它高的山是第几座山呢?如果没有则输出0 Input 测试数据有...
2019-07-01 15:29:58
583
1
原创 POJ 1017
A factory produces products packed in square packets of the same height h and of the sizes 1* 1, 2* 2, 3* 3, 4* 4, 5* 5, 6* 6. These products are always delivered to customers in the square parcels of...
2019-07-01 15:13:16
145
原创 POJ 1328
Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, locating on the ...
2019-07-01 10:41:49
185
原创 POJ 2287
Here is a famous story in Chinese history. That was about 2300 years ago. General Tian Ji was a high official in the country Qi. He likes to play horse racing with the king and others. Both ...
2019-07-01 08:52:16
331
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅