SDUT1500 Message Flood】的更多相关文章

以前做过的用的字典树,可是貌似现在再用超内存....求解释... 问了LYN用的map函数做的,又去小小的学了map函数.... http://wenku.baidu.com/view/0b08cece05087632311212ba.html感觉这个写的挺详细的 http://wenku.baidu.com/view/d140cfcca1c7aa00b52acb46.html这个的话挺有意思,帮助理解 题目描述 Well, how do you feel about mobile phone?…
Message Flood Time Limit: 1500MS Memory limit: 65536K 题目描述 Well, how do you feel about mobile phone? Your answer would probably be something like that "It's so convenient and benefits people a lot". However, If you ask Merlin this question on th…
题目地址:1194. Message Flood 思路: 不区分大小写,先全部转化为小写,用stl提供的函数做会很方便. 具体代码如下: #include <iostream> #include <set> #include <string> using namespace std; int main() { int n, m; while (cin >> n && n) { cin >> m; set<string>…
                                                                                  Message Flood Time Limit:1500MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu     Description Well, how do you feel about mobile phone? Your answer would pro…
用字典树没过,学习了一下map; 参考博客:http://blog.csdn.net/zhengnanlee/article/details/8962432 AC代码 #include<iostream> #include<map> #include<algorithm> using namespace std; int main() { int n,m,i; while(cin>>n&&n) { cin>>m; map<s…
http://acm.sdut.edu.cn:8080/vjudge/contest/view.action?cid=203#problem/D 以前用字典树做过 #include <string.h> #include <stdio.h> #include <string> #include <map> using namespace std; int main() { ]; int n,m,sum,l; ) { sum=; scanf("%d&…
大意:输入几个字符串,然后再输入几个字符串,看第一次输入的字符串有多少没有在后面的字符串中出现(后输入的字符串不一定出现在之前的字符串中) #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Node { int flag; struct Node *next[26]; }Node,*Tree; char a[20010][20]; int n,m; void Creat(T…
Message Flood Time Limit: 1500ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描写叙述 Well, how do you feel about mobile phone? Your answer would probably be something like that "It's so convenient and benefits people a lot". However, If you ask Merlin thi…
---------------  VM Arguments---------------  jvm_args: -Dosgi.requiredJavaVersion=1.6 -Dhelp.lucene.tokenizer=standard -Xms40m -Xmx256m -XX:MaxPermSize=128m java_command: <unknown>java_class_path (initial): C:\e\eclipse4.2\\plugins/org.eclipse.equi…
一.SOCK_RAW 内幕 首先在讲SOCK_RAW 之前,先来看创建socket 的函数: int socket(int domain, int type, int protocol); domain :指定通信协议族(protocol family/address) /usr/include/i386-linux-gnu/bits/socket.h  C++ Code  1 2 3 4 5 6 7 8 9 10 11 12 13   /* Supported address families…