C. Road to Cinema time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya is currently at a car rental service, and he wants to reach cine...
2023-06-05编程教程Cinema,Codeforces,Div2比赛链接:http://codeforces.com/contest/1180 Problem A 题意:给出n,问方块数。看图理解。。。 Solution: 找一找规律就可以了,发现方块数为2n*(n-1)+1 Code: #include<bits/stdc++.h> using namespac...
2023-05-20编程教程CF,contest1180,Div2A. Grasshopper And the String time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output One day, the Grasshopper was jumping on the lawn and found...
2023-05-20编程教程Div2,Grasshopper,string题目链接:D. A and B and Interesting Substrings 题目大意 给定26个小写字母的权值,一共26个整数(有正有负)。 给定一个小写字母组成的字符串(长度10^5),求有多少长度大于1的子串满足: 1)首尾字符相同。...
2023-05-20编程教程CF,Div2,Interesting就ac了一题。QAQ掉分了我好难过。 A题要画图推出来公式。 B不会,现在没看到好懂得题解。 C题,思路错了,给一些数,每天只能选其中一些,每个数不能被选超过k次,应该先将每天只能选一个得这个数先选上,因为他...
2022-11-20技术教程Codeforces,Div2目录 A - Ahahahahahahahaha B - Big Vova C - Chocolate Bunny A - Ahahahahahahahaha 题意: 给你一个01串,最多能删去一半,删完以后要使 a 1 − a ...
2022-07-29技术教程Codeforces,Div2,前三