摘要: Description Description Input 第一行一个数 n,表示序列的长度。第二行 n 个整数,第 i 个整数表示 ai,如果 ai = 0,则表示这个位置没有填数。 Output 如果不存在合法的填数方案,则输出 −1; 否则第一行输出一个整数,表示最大的 an;第二行 n 个正 阅读全文
posted @ 2018-08-13 21:22 BEYang_Z 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Description Description Input 第一行两个正整数 n, m。 Output 一行两个整数,它们的含义如题所述。 Input 第一行两个正整数 n, m。 Input 第一行两个正整数 n, m。 Output 一行两个整数,它们的含义如题所述。 Output 一行两个整数 阅读全文
posted @ 2018-08-13 21:03 BEYang_Z 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Description Description Input 第一行两个正整数 n 和 k 。第二行包含 n 个正整数,第 i 个正整数表示 ai。 Output 一行一个正整数,表示答案。 Input 第一行两个正整数 n 和 k 。第二行包含 n 个正整数,第 i 个正整数表示 ai。 Input 阅读全文
posted @ 2018-08-13 20:47 BEYang_Z 阅读(308) 评论(0) 推荐(0) 编辑