• 欢迎访问废江's博客 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏本站吧

Areas on the Cross-Section Diagram

AOJ 站点默认 1年前 (2020-04-09) 728次浏览 已收录 41个评论
文章目录[隐藏]

Question

NqUgv.png
Assume that rain is falling endlessly in the region and the water overflowing from the region is falling in the sea at the both sides. For example, for the above cross-section diagram, the rain will create floods which have areas of 4, 2, 1, 19 and 9 respectively.

Input
A string, which represents slopes and flatlands by ‘/’, ‘\’ and ‘_’ respectively, is given in a line. For example, the region of the above example is given by a string “\\///\_/\/\\\\/_/\\///__\\\_\\/_\/_/\”.

output
Report the areas of floods in the following format:
A
k L1 ,L2 …Lk
In the first line, print the total area A of created floods.
Nq9CU.png
Nqar0.png

Meaning

Sloution

Coding

Summary


个人博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Areas on the Cross-Section Diagram
喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到
(41)个小伙伴在吐槽
  1. You actually make it seem so easy together with your presentation but I find this topic to be actually one thing which I feel I might never understand. It kind of feels too complicated and extremely vast for me. I'm looking forward to your next post, I will attempt to get the cling of it!
    匿名2021-04-14 04:20 (4小时前)回复 Windows 10 | Chrome 62.0.3202.94
  2. dating website singles near me free
    匿名2021-04-12 08:44 (2天前)回复 Windows 10 | Chrome 83.0.4103.34
  3. free chat online singles sexy dating sites
    匿名2021-04-11 16:26 (3天前)回复 Windows 10 | Chrome 83.0.4086.0
  4. buy viagra online viagra without a doctor prescription viagra without a prescription
    匿名2021-04-11 06:51 (3天前)回复 Windows 10 | Chrome 83.0.4103.14
  5. online dating site free dating
    匿名2021-04-09 09:43 (5天前)回复 Windows 10 | Chrome 83.0.4103.44
  6. order erectile dysfunction pills: best erectile dysfunction pills over the counter ed medication
    匿名2021-04-08 09:14 (6天前)回复 Windows 10 | Chrome 83.0.4087.0
  7. india pharmacy: ordering medicine from india india pharmacy mail order
    匿名2021-04-05 21:35 回复 Windows 10 | Chrome 83.0.4103.61
  8. buy sumycin: terramycin tablets buy terramycin online
    匿名2021-04-03 21:01 回复 Windows 7 | Chrome 83.0.4103.61
  9. cleocin capsules: minomycin capsules zithromax online
    匿名2021-04-02 19:18 回复 Windows 10 | Chrome 83.0.4086.0
  10. http://zithromaxproff.com/# zithromax for sale usa zithromax 250 mg pill
    匿名2021-03-31 23:54 回复 Windows 10 | Chrome 83.0.4103.34
  11. https://gabapentinst.com/# neurontin 50mg tablets
    匿名2021-03-27 23:19 回复 Windows 10 | Chrome 83.0.4103.34
  12. https://gabapentinst.com/# neurontin 300
    匿名2021-03-26 15:16 回复 Windows 7 | Chrome 83.0.4103.61
  13. cheap ed pills usa ed pills online over the counter ed remedies
    匿名2021-03-24 11:11 回复 Windows 10 | Chrome 83.0.4103.61
  14. ed pills online cheap ed pills from canada cheap ed pills from india
    匿名2021-03-23 07:59 回复 Windows 10 | Chrome 83.0.4103.61
  15. buy viagra online usa https://viagrapills100.com/ viagra discount
    匿名2021-03-21 07:58 回复 Windows 10 | Chrome 83.0.4103.61
  16. chloroquine tablet price chloroquine usa
    匿名2021-03-17 06:08 回复 Windows 10 | Chrome 83.0.4103.61
  17. Very good written post. It will be useful to anyone who usess it, as well as yours truly :). Keep doing what you are doing - looking forward to more posts.
    匿名2021-03-17 04:29 回复 Windows 10 | Chrome 62.0.3202.94
  18. best place to buy viagra online price of viagra mexican viagra
    匿名2021-03-15 22:45 回复 Windows 10 | Chrome 83.0.4099.2
  19. viagra online usa buying viagra online price of viagra
    匿名2021-03-14 23:31 回复 Windows 7 | Chrome 83.0.4102.0
  20. mexican viagra best place to buy viagra online best place to buy generic viagra online
    匿名2021-03-14 01:51 回复 Windows 7 | Chrome 83.0.4103.24
  21. viagra without a doctor prescription usa viagra online usa order viagra online
    匿名2021-03-13 03:25 回复 Windows 10 | Chrome 83.0.4100.3
  22. india pharmacy: https://genericwdp.com/ buy cheap prescription drugs online
    匿名2021-03-11 02:21 回复 Windows 10 | Chrome 83.0.4103.61
  23. generic pills for ed prescription drugs without a doctor
    匿名2021-03-09 05:14 回复 Windows 10 | Chrome 83.0.4103.34
  24. tadalafil tablets: http://tadalafilonline20.com/ tadalafil generic
    匿名2021-03-05 14:42 回复 Windows 7 | Chrome 83.0.4103.61
  25. I like what you guys are up also. Such intelligent work and reporting! Lavinie Micky Wichern
    altyazili2021-02-10 19:30 回复 Windows 10 | Chrome 86.0.4240.193
  26. Pretty! This was a really wonderful post. Thanks for providing these details. Bonnee Salmon Kris
    dizi2021-02-09 20:02 回复 Windows 10 | Chrome 86.0.4240.193
  27. Youre so awesome! I do not intend Ive read anything such as this before. So wonderful to discover someone with some original ideas on this subject. realy thanks for beginning this up. this web site is something that is needed online, a person with a little creativity. valuable job for bringing something brand-new to the net! Rebecka Farly Bernita
    mp32021-02-09 18:34 回复 Windows 10 | Chrome 86.0.4240.193
  28. whoah this blog is excellent i love reading your posts. Keep up the great work! You know, many people are looking around for this info, you could aid them greatly. Eddy Cornelius Hyde
    diziler2021-02-09 17:16 回复 Windows 10 | Chrome 86.0.4240.193
  29. Hey there! I just would like to give you a big thumbs up for the great info you have got here on this post. I am returning to your web site for more soon. Brittaney Bastian Concepcion
    dizi2021-02-09 15:28 回复 Windows 10 | Chrome 86.0.4240.193
  30. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your website? Edeline Rupert Guimond
    dizi2021-02-08 21:57 回复 Windows 10 | Chrome 86.0.4240.193
  31. Thought I would comment and say great theme, did you design it on your own? Its really great! Ray Pierre Jedd
    diziler2021-02-08 21:31 回复 Windows 10 | Chrome 86.0.4240.193
  32. It is indeed my belief that mesothelioma is definitely the most lethal cancer. It contains unusual attributes. The more I really look at it the more I am convinced it does not respond like a true solid flesh cancer. If mesothelioma can be a rogue virus-like infection, hence there is the potential for developing a vaccine and offering vaccination to asbestos exposed people who are at high risk associated with developing potential asbestos connected malignancies. Thanks for sharing your ideas for this important ailment. Liana Basile Elnora
    diziler2021-02-02 22:16 回复 Windows 10 | Chrome 86.0.4240.193
  33. I think you have noted some very interesting details , thankyou for the post. Aeriell Lorant Eisele Kissee Yard Wilma
    episodes2021-02-02 18:37 回复 Windows 10 | Chrome 86.0.4240.193
  34. I enjoy looking through a post that can make men and women think. Also, thank you for allowing me to comment! Petronilla Hurley Lentha
    online2021-02-02 15:50 回复 Windows 10 | Chrome 86.0.4240.193
  35. I love looking through an article that can make men and women think. Also, thanks for allowing me to comment. Jobey Virge Monetta
    haber2021-02-02 11:35 回复 Windows 10 | Chrome 86.0.4240.193
  36. I like the valuable information you provide in your articles. Gwenneth Linc Canice
    canli tv2021-02-02 11:10 回复 Windows 10 | Chrome 86.0.4240.193
  37. Hi there. I found your website via Google whilst searching for a similar matter, your web site got here up. It appears good. I have bookmarked it in my google bookmarks to come back then. Sonny Alonzo Vargas
    download2021-02-02 07:14 回复 Windows 10 | Chrome 86.0.4240.193
  38. A big thank you for your article post. Really thank you! Really Cool. Lydia Zed Mariand
    canli2021-02-02 05:16 回复 Windows 10 | Chrome 86.0.4240.193
  39. I was wondering if you increasingly considered varying the describe of your blog? Its vastly thriving written; I fondness what youve got to articulate. Except maybe you could a insignificant extra in the way of satisfy as a result nation could connect with it enhanced. Youve got an dire slice of text for only having one or two similes. Perhaps you could space it absent better? Nelli Ezra Kessel
    free movies2021-02-01 19:33 回复 Windows 10 | Chrome 86.0.4240.193
  40. You made some nice points there. I looked on the internet for the subject matter and found most individuals will agree with your site. Minnaminnie Shae Kovar
    canli2021-02-01 17:59 回复 Windows 10 | Chrome 86.0.4240.193
  41. I blog frequently and I really appreciate your content. Lorraine Vinnie Whitehouse
    haber2021-02-01 14:09 回复 Windows 10 | Chrome 86.0.4240.193