随笔分类 - 比赛补题
1
摘要:Kabaleo Lite 用带负数的大整数用__int128 #include <bits/stdc++.h> #define ll long long using namespace std; const int MAXN=200050,INF=0x3fffffff; ll n,a[MAXN],b
阅读全文
摘要:Interesting Computer Game #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map>
阅读全文
摘要:Drop Voicing #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sst
阅读全文
摘要:Keyboard Free #include <bits/stdc++.h> #define ll long long #define ld long double #define pii pair<int, int> #define rep(i,a,b) for(ll i=a;i<=b;i++)
阅读全文
摘要:多校赛第二场B题 #include <bits/stdc++.h> #define ll long long #define lll unsigned long long #define pii pair<int, int> #define rep(i,a,b) for(ll i=a;i<=b;i+
阅读全文
摘要:恢复内容开始 D. Grid-00100 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A mad scientist Dr.J
阅读全文
摘要:The only difference between easy and hard versions is constraints. You are given a sequence aa consisting of nn positive integers. Let's define a thre
阅读全文
摘要:Given an array aa of length nn, find another array, bb, of length nn such that: for each ii (1≤i≤n)(1≤i≤n) MEX({b1MEX({b1, b2b2, ……, bi})=aibi})=ai. T
阅读全文
摘要:You are given a matrix with nn rows (numbered from 11 to nn) and mm columns (numbered from 11 to mm). A number ai,jai,j is written in the cell belongi
阅读全文
摘要:You are given an array aa of length nn consisting of zeros. You perform nn actions with this array: during the ii-th action, the following sequence of
阅读全文
摘要:Eugene likes working with arrays. And today he needs your help in solving one challenging task. An array cc is a subarray of an array bb if cc can be
阅读全文
摘要:You are given an array aa consisting of nn integers (it is guaranteed that nn is even, i.e. divisible by 22). All aiai does not exceed some integer kk
阅读全文
摘要:The base (or radix) of a positional numeral system is the number of symbols that can be used to represent a number in that system. The base 1010 syste
阅读全文
摘要:A group of friends snuck away from their school campus, but now they must return from the main campus gate to their dorm while remaining undetected by
阅读全文
摘要:You have array of nn numbers a1,a2,…,ana1,a2,…,an. Rearrange these numbers to satisfy |a1−a2|≤|a2−a3|≤…≤|an−1−an||a1−a2|≤|a2−a3|≤…≤|an−1−an|, where |x
阅读全文
摘要:C. Circle of Monsters time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are playing ano
阅读全文
摘要:The sequence of mm integers is called the permutation if it contains all integers from 11 to mm exactly once. The number mm is called the length of th
阅读全文
摘要:The 2018 World Cup was held recently in Russia. Some great soccer countries (e.g., Italy,Netherlands, Chile, USA) did not qualify for this World Cup.
阅读全文
摘要:前有牛顿瘟疫“家里蹲”发明微积分。 现有 Cuber QQ 新冠肺炎“家里蹲”发明与矩阵。 与矩阵是一个 n×n 的矩阵。规定矩阵中的第 i 行第 j 列记为 (i,j) 。 生成一个与矩阵的方式是,先生成一个长度为 n 的数列 a1,a2,…,an−1,an ,而矩阵中 (i,j)=ai&aj 。
阅读全文
1

浙公网安备 33010602011771号