上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 97 下一页
摘要: Problem Description Vasya is pressing the keys on the keyboard reluctantly, squeezing out his ideas on the classical epos depic... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(49) 评论(0) 推荐(0)
摘要: Problem Description One day Vasya was on a physics practical, performing the task on measuring the capacitance. He followed the... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(32) 评论(0) 推荐(0)
摘要: Problem Description There are n boys and m girls studying in the class. They should stand in a line so that boys and girls alte... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(66) 评论(0) 推荐(0)
摘要: 题目描述 The N (1 #include#include#include#include#include#include#include#include#include#include#include#include#include#include#... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(20) 评论(0) 推荐(0)
摘要: 题目描述 Uim成功地按照顺序将礼物送到了N个妹子的手里并维持她们的和谐。 Uim现在想知道,他最终选择的顺序是所有给N个妹子送礼顺序中、字典序第几小的。 输入输出格式 输入格式: 第一行一个整数N,表示有N个数。 第二行一个整数X,表示给出的... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(108) 评论(0) 推荐(0)
摘要: 【概述】 康托展开是一个全排列到一个自然数的双射,常用于构建哈希表时的空间压缩,在组合数学中,其解决的是当前排列在全排列中的名次问题。 简单来说,给定一个 n 位数的全排列,可根据康托展开公式确定其应是字典序中的第几个排列。 由于康托展开计算的是某个全排列方式... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(331) 评论(0) 推荐(1)
摘要: Problem Description Little Petya likes permutations a lot. Recently his mom has presented him permutation q1, q2, ..., qn of le... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(15) 评论(0) 推荐(0)
摘要: Problem Description Little Petya likes points a lot. Recently his mom has presented him n points lying on the line OX. Now Pety... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(32) 评论(0) 推荐(0)
摘要: Problem Description Little Petya likes arrays that consist of non-negative integers a lot. Recently his mom has presented him o... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(34) 评论(0) 推荐(0)
摘要: Problem Description Little Petya likes arrays of integers a lot. Recently his mother has presented him one such array consistin... 阅读全文
posted @ 2022-09-20 22:52 老程序员111 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 70 71 72 73 74 75 76 77 78 ··· 97 下一页