![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
模拟
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
C. k-Amazing Numbers
https://codeforces.ml/contest/1417/problem/C You are given an arrayaaconsisting ofnnintegers numbered from11tonn. Let's define thekk-amazing number of the array as the minimum number that occurs in all of the subsegments of the array having lengt...原创 2020-11-19 14:29:07 · 267 阅读 · 0 评论 -
C. Engineer Artem
https://codeforces.ml/contest/1438/problem/C Artem is building a new robot. He has a matrixaaconsisting ofnnrows andmmcolumns. The cell located on theii-th row from the top and thejj-th column from the left has a valueai,jai,jwritten in it. If ...原创 2020-11-14 14:22:31 · 204 阅读 · 0 评论 -
I Box
Box 链接:https://ac.nowcoder.com/acm/contest/7854/I 来源:牛客网 Bella is working in a factory that produces boxes. All boxes are in a shape of rectangular parallelepipeds. A net of the corresponding parallelepiped is cut out of a flat rectangular piece of car.原创 2020-10-07 13:02:10 · 445 阅读 · 1 评论 -
D. Monopole Magnets
链接:https://codeforces.ml/contest/1345/problem/D A monopole magnet is a magnet that only has one pole, either north or south. They don't actually exist since real magnets have two poles, but this is a...原创 2020-05-07 11:56:28 · 619 阅读 · 0 评论 -
B. Hyperset
#include<bits/stdc++.h> using namespace std; long long n,t,s,k,ans; string x[1501]; map<string,long long>m; int main() { scanf("%lld %lld\n",&n,&k); s=0; ans=0; for(int i=1;i&...原创 2020-02-16 22:33:32 · 393 阅读 · 0 评论 -
B. Infinite Prefixes
链接:https://codeforces.com/contest/1295/problem/B You are given stringssof lengthnnconsisting of0-s and1-s. You build an infinite stringttas a concatenation of an infinite number of stringsss...原创 2020-01-30 13:31:52 · 809 阅读 · 0 评论 -
C. Tic-tac-toe
链接:https://codeforces.com/problemset/problem/3/C Certainly, everyone is familiar with tic-tac-toe game. The rules are very simple indeed. Two players take turns marking the cells in a3 × 3grid (one ...原创 2020-01-18 15:29:32 · 249 阅读 · 0 评论 -
B. Views Matter
链接:https://codeforces.com/contest/1061/problem/B You came to the exhibition and one exhibit has drawn your attention. It consists ofnnstacks of blocks, where theii-th stack consists ofaiaiblocks ...原创 2019-12-03 14:58:38 · 203 阅读 · 0 评论 -
B - Pocket Cube
链接:https://vjudge.net/contest/339839#problem/B The Pocket Cube, also known as the Mini Cube or the Ice Cube, is the 2 × 2 × 2 equivalence of a Rubik’s Cube. The cube consists of 8 pieces, all corner...原创 2019-11-02 17:49:06 · 136 阅读 · 0 评论