![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
一些神奇的东西
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
K - Ragdoll
https://codeforces.com/gym/102832/problem/K Once there was a lovely ragdoll cat, named Little Zara, who liked trees and math. One day she met the doge Adam. Adam had just planted some trees each consisting of only one node. The nodes were numbered from11.原创 2020-12-15 18:50:37 · 334 阅读 · 0 评论 -
B. Spreadsheets
链接:https://codeforces.com/contest/1/problem/B In the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — numb...原创 2020-01-27 16:47:48 · 291 阅读 · 0 评论 -
A. Sweet Problem
链接:https://codeforces.com/contest/1263/problem/A You have three piles of candies: red, green and blue candies: the first pile contains only red candies and there arerrcandies in it, the second pi...原创 2019-11-30 15:59:55 · 321 阅读 · 0 评论 -
A. Tile Painting
链接:https://codeforces.com/contest/1242/problem/A Ujan has been lazy lately, but now has decided to bring his yard to good shape. First, he decided to paint the path from his house to the gate. The p...原创 2019-11-26 12:48:30 · 354 阅读 · 0 评论 -
C2. Good Numbers (hard version)
链接:https://codeforces.com/contest/1249/problem/C2 The only difference between easy and hard versions is the maximum value ofnn. You are given a positive integer numbernn. You really lovegood numb...原创 2019-10-23 16:49:05 · 392 阅读 · 0 评论 -
C. The Football Season
链接:https://codeforces.com/contest/1244/problem/C The football season has just ended in Berland. According to the rules of Berland football, each match is played between two teams. The result of each ...原创 2019-10-14 12:02:31 · 293 阅读 · 3 评论 -
高精度除法+高精度符号运算封装
转载自https://blog.csdn.net/zufesatoshi/article/details/95549459 40行的高精除,你们敢信? #include<bits/stdc++.h> using namespace std; const int maxn = 1e6 + 10; int a[maxn], b[maxn], c[maxn], d[maxn]; cha...转载 2019-07-12 14:57:16 · 309 阅读 · 0 评论 -
一)408.奶牛碑文
一)408.奶牛碑文 约翰和他的奶牛在大草原漫游,在一块石头上发现了一些有趣的碑文。碑文似乎是一个神秘古老的语言,只包括三个大写字母 C、O 和 W。尽管约翰看不懂,但是令他高兴的是,C、O、W的顺序形式构成了一句他最喜欢的奶牛单词“COW”。现在,他想知道有多少次 COW 出现在文本中。如果 COW 内穿插了其他字符,只要 COW 字符出现在正确的顺序,约翰也不介意。甚至,他也不介意出现不...转载 2019-07-14 13:13:19 · 794 阅读 · 0 评论