摘要: You are given two strings s and t consisting of small Latin letters, string s can also contain '?' characters. Suitability of string s is calculated b 阅读全文
posted @ 2017-08-06 17:40 阿波罗2003 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 描述 给一个空数列,有M次操作,每次操作是以下三种之一: (1)在数列后加一个数 (2)求数列中某位置的值 (3)撤销掉最后进行的若干次操作(1和3) 输入 第一行一个正整数M。 接下来M行,每行开头是一个字符,若该字符为'A',则表示一个加数操作,接下来一个整数x,表示在数列后加一个整数x;若该字 阅读全文
posted @ 2017-08-06 13:21 阿波罗2003 阅读(316) 评论(0) 推荐(0) 编辑
摘要: Some time ago Slastyona the Sweetmaid decided to open her own bakery! She bought required ingredients and a wonder-oven which can bake several types o 阅读全文
posted @ 2017-08-06 12:06 阿波罗2003 阅读(191) 评论(0) 推荐(0) 编辑