### 题目描述

#### 样例

##### 输入
2 3
a
b
##### 输出
First

### 代码

#include
#define maxn 100050
using namespace std;
int n,k,root,top,q[maxn][26];
char x[maxn];
void insert(){
int len=strlen(x);
int now=root;
for (int i=0;i>n>>k;
for (int i=1;i<=n;i++)
cin>>x,insert();
int ans=dfs(root);
if (ans==3||ans==2&&k&1) cout<<"First"<
 
 Share 【NOI 2018】归程 / 题解 题目背景 本题的故事发生在魔力之都，在这里我们将为你介绍一些必要的设定。 魔力之都可以抽象成一个 n 个节点、m 条边的无向连通图（节点的编号从 1 至 n）… 19 Jul 2018 【CodeForces 500E】New Year Domino / 题解 原题地址 [https://codeforces.com/problemset/problem/500/E] 题目描述 给定一列多米诺骨牌的高度和底端横坐标，求若要让推动第x块至少使第y块倒下，需要加长区间内的多米诺骨牌的总长度。… 17 Jul 2018 
 
 
 Zepto's © 2024 Data & privacy Contact → Published with Ghost • Theme Attila • System theme 
 $(document).ready(function () { var viewport =$(window); var post = $('.post-content'); // Responsive videos with fitVids post.fitVids(); // Format code blocks and add line numbers function codestyling() {$('pre code').each(function(i, e) { // Code highlight hljs.highlightElement(e); // No lines for plain text blocks if (!$(this).hasClass('language-text')) { var code =$(this); // Calculate amount of lines var lines = code.html().split(/\n(?!$)/g).length; var numbers = []; if (lines > 1) { lines++; } for (i = 1; i < lines; i++) { numbers += '<span class="line" aria-hidden="true">' + i + '</span>'; } code.parent().append('<div class="lines">' + numbers + '</div>'); } }); } codestyling(); // Reading progress bar on window top function readingProgress() { var postBottom = post.offset().top + post.height(); var viewportHeight = viewport.height(); var progress = 100 - (((postBottom - (viewport.scrollTop() + viewportHeight) + viewportHeight / 3) / (postBottom - viewportHeight + viewportHeight / 3)) * 100);$('.progress-bar').css('width', progress + '%'); (progress > 100) ? $('.progress-container').addClass('complete'):$('.progress-container').removeClass('complete'); } readingProgress(); // Trigger reading progress viewport.on({ 'scroll': function() { readingProgress(); }, 'resize': function() { readingProgress(); }, 'orientationchange': function() { readingProgress(); } }); });