
sicily
yang蜗牛
中山大学16级数据科学与计算机学院软件工程硕士,研究方向为自然语言处理,基于深度学习的文本情感分析
展开
-
[sicily] 1003. hit or miss
#include #include using namespace std;int main() { int n; while(cin >> n) { for (int i = 0; i < n; ++i) { int numOfPlayer; cin >> numOfPlayer;转载 2015-05-29 18:18:07 · 487 阅读 · 0 评论 -
[sicily] 1001. Alphacode
题目大意: 假设有一规则:’A’ 设为1,’B’设为2,以此类推, ‘Z’设为26。按照这个规则给一串英文字母编码,将会得到一个数字码。现在给定这个数字码,求出可以解码出多少种不同的英文字母。解题思路 动态规划:由于总共有26个英文字母,那么数字码可能取1~26。那么对于每一个数字,这个数字可以单独解码,也可以与其前面一个数字一起解码。则得到的解码规则如下: 以下每种情况,初始时,结果 =原创 2016-05-11 21:26:54 · 607 阅读 · 0 评论 -
[sicily]1002. Anti-prime Sequences
题目解析:注意在判断一个d anti-prime sequence时,需要判断连续2,3…,d个数字的和是否都是一个合数!解题思路 深度搜索:从第一个数字开始,不断向序列中加入新的数字,判断加入的数字是否能够组成一个d-anti-prime sequence。如果可以则继续增加新元素,否则弹出这个元素,尝试加入下一个数字。主要的解题思路已经知道可以采用深度搜索了,但是还需要解决一个问题,就是如何判原创 2016-05-12 15:27:14 · 709 阅读 · 0 评论 -
[sicily] 1020. Big Integer
1020. Big IntegerConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionLong long ago, there was a super computer that could deal with VeryLongIntegers(no VeryLongInteger will be negative). Do yo原创 2016-05-12 20:08:15 · 380 阅读 · 0 评论 -
[sicily] 1021. Couples
1021. CouplesConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionN couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not always stand toget原创 2016-05-12 20:18:45 · 399 阅读 · 0 评论