随笔分类 - 二分
摘要:Codeforces Round #690 (Div. 3) A. Favorite Sequence Solution 按要求输出即可 #include <iostream> #include <vector> using namespace std; const int maxn = 333;
阅读全文
摘要:K-th Number Problem: Alice are given an array A[1..N] with N numbers. Now Alice want to build an array B by a parameter K as following rules: Initiall
阅读全文
摘要:阶乘 题目描述: 给定一个正整数 p 求一个最小的正整数 n,使得 n! 是 p 的倍数 输入描述: 第一行输入一个正整数T表示测试数据组数 接下来T行,每行一个正整数p 输出描述: 输出T行,对于每组测试数据输出满足条件的最小的n 样例输入: 样例输出: 备注: $T\leq10^3,p\leq1
阅读全文
摘要:COW: 题目描述: Xiaoming's farm consists of a long row of N (1≤N≤100,000) fields. Each field contains a certain number of cows,0≤ncows≤2000. Xiaoming wants
阅读全文

浙公网安备 33010602011771号