![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
酸菜鱼写的题🐠
文章平均质量分 61
酸酸菜菜酸菜鱼
欸嘿
展开
-
Codeforces Round #768 (Div. 2) B. Fun with Even Subarrays
题目链接:Problem - B - Codeforces【题目】You are given an arrayaaofnnelements. You can apply the following operation to it any number of times:Select some subarray fromaaof even size2k2kthat begins at positionll(1≤l≤l+2⋅k−1≤n,k≥1) and for eachi...原创 2022-01-28 01:30:47 · 1784 阅读 · 0 评论 -
黑龙江职业学院校赛第二场 B-最后一个签到 还是个字符串基础题 题解
题目描述给你n个字符串。字符串内有大小写字母和数字。请你输出有多少个不同的字符串。输入描述:第一行一个整数n1≤n≤10000以下n行每行一个字符串S1≤S.length()≤1500输出描述:输出一个整数 不同的字符串的个数样例输入5ACACACCACCCACCCC输出4【题解】用string数组把所有字符串存入 sort排序 遍历,当该字符串与前一字符串相等时n-1【代码实现】#include&l.原创 2022-01-16 23:05:14 · 522 阅读 · 0 评论 -
第九届“图灵杯”NEUQ-ACM程序设计竞赛个人赛 G-Num 题解
题目描述Phenix有一个正整数N,他想知道正整数N是否可以写成a * b + a + b的形式(其中a > 0,b > 0)例如3 = 1 ∗ 1 + 1 + 1,如果可以请输出"Yes",否则输出"No"原创 2022-01-16 22:50:12 · 684 阅读 · 0 评论 -
Codeforces Round #764 (Div. 3) C. Division by Two and Permutation 题解
C. Division by Two and Permutation【题目】You are given an arrayaconsisting ofnpositive integers. You can perform operations on it.In one operation you can replace any element of the arrayaiwith⌊ai/2⌋, that is, by an integer part of dividingaiby...原创 2022-01-11 16:55:24 · 468 阅读 · 0 评论