![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
初识ACM
白白不狼
我是菜b
展开
-
skip the class
Finally term begins. luras loves school so much as she could skip the class happily again.(wtf?) Luras will take n lessons in sequence(in another word, to have a chance to skip xDDDD). For eve转载 2017-03-13 22:28:40 · 634 阅读 · 0 评论 -
sort函数入门
sort函数没有比较的情况下默认从小到大排列#include#includeusing namespace std;int main(){ int i; int a[]={3,4,2,5}; sort(a,a+4); for(i=0;i printf("%d ",a[i]); return 0;}输原创 2017-03-14 13:19:49 · 209 阅读 · 0 评论 -
Lotus and Characters
Lotus has nn kinds of characters,each kind of characters has a value and a amount.She wants to construct a string using some of these characters.Define the value of a string is:its first character's原创 2017-03-14 22:04:22 · 238 阅读 · 0 评论 -
水题-fxx and string
Young theoretical computer scientist Fxx get a string which contains lowercase letters only. The string SS contains nn lowercase letters S1S2…SnS1S2…Sn.Now Fxx wants to know how many three tup原创 2017-03-15 21:43:24 · 264 阅读 · 0 评论 -
水题-find q
Byteasar is addicted to the English letter 'q'. Now he comes across a string SSconsisting of lowercase English letters. He wants to find all the continous substrings of SS, which only contain原创 2017-03-15 23:28:58 · 338 阅读 · 0 评论 -
水题-kblack love flags
Kblack loves flags, so he has infinite flags in his pocket. One day, Kblack is given an n∗mn∗m chessboard and he decides to plant flags on the chessboard where the position of each flag is descr原创 2017-03-15 23:44:40 · 239 阅读 · 0 评论