模拟
龍木
若人生为棋,我愿为卒,漫漫征途,谁曾见我后退半步
展开
-
C. k-Amazing Numbers
https://codeforces.ml/contest/1417/problem/CYou 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 · 283 阅读 · 0 评论 -
C. Engineer Artem
https://codeforces.ml/contest/1438/problem/CArtem 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 · 215 阅读 · 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 · 458 阅读 · 1 评论 -
D. Monopole Magnets
链接:https://codeforces.ml/contest/1345/problem/DA 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 · 627 阅读 · 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 · 403 阅读 · 0 评论 -
B. Infinite Prefixes
链接:https://codeforces.com/contest/1295/problem/BYou 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 · 819 阅读 · 0 评论 -
C. Tic-tac-toe
链接:https://codeforces.com/problemset/problem/3/CCertainly, 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 · 255 阅读 · 0 评论 -
B. Views Matter
链接:https://codeforces.com/contest/1061/problem/BYou 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 · 212 阅读 · 0 评论 -
B - Pocket Cube
链接:https://vjudge.net/contest/339839#problem/BThe 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 · 144 阅读 · 0 评论