t0ur1st 6 年前 数学 【Codeforces】1213C – Book Reading Problem Description: Polycarp is reading a book consisting of n pages numbered from 1 to n. Every time he finishes the page with the number divisible […] C++, Codeforces 4.46k 0 0
t0ur1st 6 年前 水题 【Codeforces】1213A – Chips Moving Problem Description: You are given n chips on a number line. The i-th chip is placed at the integer coordinate . Some chips can have equal coordinates […] C++, Codeforces 4.25k 0 0
t0ur1st 6 年前 数学 【Codeforces】1213B – Bad Prices Problem Description: Polycarp analyzes the prices of the new berPhone. At his disposal are the prices for n last days: ,,…,, where is the price of be […] C++, Codeforces 4.42k 0 0
t0ur1st 6 年前 【小米OJ】进制转换 题目描述: 给出一个P进制整数N,求N的Q进制表示(0 ≤ N ≤ 32767,2 ≤ P ≤ 16, 2 ≤ Q ≤ 16)。 大于 9 的数字依次使用小写字母 a、b、c、d、e、f 表示。 请勿使用已存在的进制转换库或函数,比如PHP中的base_convert()等。 输入描述: 输入3个数 […] C++, 校招 3.41k 0 0
t0ur1st 6 年前 regex 字符串 删除字符串中的子串(C++ regex求解) 题目描述: 输入2个字符串S1和S2,要求删除字符串S1中出现的所有子串S2,即结果字符串中不能包含S2。 输入格式: 输入在2行中分别给出不超过80个字符长度的、以回车结束的2个非空字符串,对应S1和S2。 输出格式: 在一行中输出删除字符串S1中出现的所有子串S2后的结果字符串。 输入样例: T […] C++ 3.94k 0 0
t0ur1st 6 年前 数学 【PAT甲级】The Black Hole of Numbers Problem Description: For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, […] C++, PAT甲级 2.79k 0 0
t0ur1st 6 年前 水题 【蓝桥杯】ADV-20 交换Easy 题目描述: 给定N个整数组成的序列,每次交换当前第x个与第y个整数,要求输出最终的序列。 输入描述: 第一行为序列的大小N(1< =N< =1000)和操作个数M(1< =M< =1000)。 第二行包含N个数字,表示初始序列。 接下来M行,每行两个整数x,y (1< […] C++, 蓝桥杯 2.8k 0 0