2018暑假牛客多校第六场

基于拟蒙特卡洛模拟法的随机潮流计算matlab程序 由式(4-11)可知,蒙特卡洛模拟法的计算量不受电力系统规模大小影响,因此该方法在一些复杂的电力系统中可以得到应用,包括处理电力系统中有多个间歇性新能源接入的问题,解决系统中多个节点之间相关性问题等等。本章在此基础上提出了基于拟蒙特卡洛模拟的随机潮流计算方法,并且对拟蒙特卡洛法中的拟随机数序列进行了改进,大大提高了随机潮流的计算效率。模拟法的具体思路如下:基于实际工程问题的求解需要,建立与之相对应的随机模拟过程和随机概率模型,使得它们的参数,包括概率分布或者数学期望,能够等于问题的实际解; 阅读详情

A-Singing Contest

就是两个两个比较,然后用比对手大的最小的去与对手比就行了~

#include"bits/stdc++.h"
#define out(x) cout<<#x<<"="<<x
#define C(n,m) ((long long)fac[(n)]*inv[(m)]%MOD*inv[(n)-(m)]%MOD)
using namespace std;
typedef long long LL;
const int maxn=(1<<16)+5;
const int MOD=1e9+7;
int N,cnt;
struct AAA
{
    int id;
    vector<int>v;
};
AAA a[maxn];
void pushup(int id)
{
    int n=a[id<<1].v.size()-1;
    if(a[id<<1].v[n]<a[id<<1|1].v[n])swap(a[id<<1],a[id<<1|1]);
    int i=n;
    while(a[id<<1].v[i]>a[id<<1|1].v[n])i--;
    a[id<<1].v.erase(a[id<<1].v.begin()+i+1);
    a[id]=a[id<<1];
}
void Build(int id,int L,int R)
{

    if(L==R)
    {
        a[id].id=++cnt;
        for(int j=1;j<=N;j++)
        {
            int t;
            scanf("%d",&t);
            a[id].v.push_back(t);
        }
        sort(a[id].v.begin(),a[id].v.end());
        return ;
    }
    int mid=L+R>>1;
    Build(id<<1,L,mid);
    Build(id<<1|1,mid+1,R);
    pushup(id);
}
int main()
{
    int T;
    scanf("%d",&T);
    for(int Case=1;Case<=T;Case++)
    {
        memset(a,0,sizeof a);
        cnt=0;
        scanf("%d",&N);
        Build(1,1,(1<<N));
        cout<<"Case #"<<Case<<": "<<a[1].id<<endl;
    }
}

J-Heritage of skywalkert

这道题也没懂他啥意思,据说反正就是求出前面几个最大的然后暴力求 lcm l c m 就行了,但是看大佬的写法学到一个新的 stl s t l 里的函数,

nth_element(a+1,a+1+K,a+1+N) n t h _ e l e m e n t ( a + 1 , a + 1 + K , a + 1 + N )

就是用来找 1到N 1 到 N 里第 K K 个小的元素,并且把比他小的放到左边,大的放到右边,据说是 O(n) 的复杂度~

#include"bits/stdc++.h"
using namespace std;
typedef unsigned long long ull;
typedef unsigned int uint;
const int maxn=1e7+5;
const int MOD=1e9+7;
ull a[maxn];
unsigned int X,Y,Z;
ull tang()
{
    X^=X<<16;
    X^=X>>5;
    X^=X<<1;
    ull t=X;
    X=Y;
    Y=Z;
    Z=t^X^Y;
    return Z;
}
ull gcd(ull a,ull b)
{
    if(b==0)return a;
    else return gcd(b,a%b);
}
ull lcm(ull a,ull b)
{
    ull t=a/gcd(a,b);
    return t*b;
}
int main()
{
    int T;
    scanf("%d",&T);
    uint N,A,B,C;
    for(int Case=1;Case<=T;Case++)
    {
        cin>>N>>A>>B>>C;
        X=A,Y=B,Z=C;
        for(int i=1;i<=N;i++)a[i]=tang();
        int K=max(0,(int)N-200);
        nth_element(a+1,a+1+K,a+1+N);//就是这个函数
        ull Max=0;
        for(int i=K+1;i<=N;i++)
        {
            for(int j=i+1;j<=N;j++)
            {
                Max=max(Max,lcm(a[i],a[j]));
            }
        }
        cout<<"Case #"<<Case<<": "<<Max<<endl;
    }
}
NVIDIA Jetson之交叉编译工具 参考:http://bbs.xfyun.cn/forum.php?mod=viewthread&amp;tid=33630 用TX2做红外热成像仪的识别,厂家不提供源码,只能提供对应版本的SDK,但是需要我们自己提供交叉编译器 由于之前没有做过交叉编译相关工作,对编译工具不太了解,因此查找相关资料学习下 交叉编译知识 一般来说,针对嵌入式平台的开发有两种编译模式:原生编译和交叉编译。原生编... 阅读详情

相关推荐

Halcon工业相机开发全流程:从SDK配置到实时图像采集(C++版)

本文详细介绍了使用C++进行Halcon工业相机开发的完整流程,从SDK配置到实时图像采集的实现。涵盖环境搭建、设备初始化、回调机制、参数控制等关键环节,并提供异常处理和实战案例,帮助开发者快速掌握工业视觉系统的开发技巧。

weixin_33728268的博客 519

Heritage of skywalkert(思维 + STL)

skywalkert, the new legend of Beihang University ACM-ICPC Team, retired this year leaving a group of newbies again.   Rumor has it that he left a heritage when he left, and only the one who has at l...

ToBeYours的博客 457

IT世界里的“国境线”(芯片与算法篇)

首先分析下概念,对于芯片,相信大家已经比较了解,就不做过多的解释。我们说一下算法,虽然算法是应用在IT领域,但我相信学数学的同学,特别是学习计算数学的,对算法应该更加熟悉。记得在本科课程中,专门有一门课叫做“算法设计”。从概念上来讲,算法指的是解决问题的方法和流程,是一段逻辑,一系列解决问题的清晰指令。或者更通俗一点来讲,算法是从A到B,所有可能的计算方式。 一、 芯片与算法的关系 芯片和算法并不是独立或者对立的两个个体。芯片本身就集成了算法。算法是一种逻辑概念,芯片是算法的一种表现形式,软件也是算法的

weixin_49664622的博客 7028

2018 牛客多校第六场 Heritage of skywalkert (随机概率)

https://www.nowcoder.com/acm/contest/144/J 题意:通过一个操作得到ai,然后找到两个数,使得他们的lcm最大。 思路:得到的数其实相当于随机数,只要找前20大的数暴力找他们的lcm即可,可以用优先队列来找前20大的,直接排序会时间会炸   #include&lt;bits/stdc++.h&gt; using namespace std; #de...

Oops的博客 458

HWSD全球土壤数据下载处理

下载地址: http://www.fao.org/soils-portal/soil-survey/soil-maps-and-databases/harmonized-world-soil-database-v12/en/

江北20190411的博客 3万+

python 中心线提取_二值分析 | OpenCV + skimage如何提取中心线

点击上方蓝字关注我们微信公众号:OpenCV学堂关注获取更多计算机视觉与深度学习知识问题前几天有个人问了我一个问题,问题是这样的,他有如下的一张二值图像:怎么得到白色Blob中心线,他希望的效果如下:显然OpenCV中常见的轮廓分析无法获得上面的中心红色线段,本质上这个问题是如何提取二值对象的骨架,提取骨架的方法在OpenCV的扩展模块中,另外skimage包也支持图像的骨架提取。这里就...

weixin_42204453的博客 4293

牛客2018多校第六场 J Heritage of skywalkert - nth_element

传送门 题意:提供一个随机生成函数,让你生成n个数,然后问你其中能找到的两个数的最小公倍数 最大 是多少。 思路:可以用nth_element()函数在O(n)下求出前 15 个大的数(当然,100个数也是可以的),暴力枚举这15个数两两求最小公倍数的结果。当然可以用小根堆优先队列,保证队列中有15个最大的数。   (雾,由于是随机数,互质的概率大。 // #include&...

weixin_30951743的博客 158

基于非接触式微波雷达设计的睡眠监控系统_323

本项目设计了一种基于非接触式微波雷达的睡眠监控系统,通过高精度的生理信号采集与分析,帮助用户全面了解自身的睡眠状态和健康状况。系统采用60GHz频段的R60ABD1毫米波雷达模块,实现对人体呼吸频率、心率、活动状态、体动幅度等参数的非接触式测量;结合MLX90614红外体温传感器,能够实时监测人体体温。此外,系统通过蜂鸣器报警和数据上云功能,及时向用户反馈异常生理指标,确保健康风险早期预警。数据通过ESP8266-WIFI模块上传至华为云物联网平台,用户可通过Android手机APP和Windows上位机远

506

【牛客】2024暑期牛客多校6 补题记录

【代码】【牛客】2024暑期牛客多校6 补题记录。

Texcavator的博客 844

Multisim14.0仿真应用设计(十六)74LS138译码器应用仿真

74LS138为3线-8线译码器。

zhusl6688的博客 2989

12、有杆泵抽油系统:原理、性能与选择

本文全面介绍了有杆泵抽油系统的原理、性能分析和设备选择方法。有杆泵抽油系统广泛应用于石油开采领域,通过地面抽油装置与井下柱塞泵的配合,实现高效、稳定的原油提升。文章详细解析了系统的工作原理、组成结构、光杆运动特性、载荷计算、泵输送能力及功率需求,并提供了抽油装置的选择流程和实际案例分析。此外,还探讨了泵的容积效率影响因素、示功图的作用及系统优化运行的建议,为石油开采工程提供了理论支持和实践指导。

gan8painter的博客 437

牛客多校第六场 G Pikachu(树形dp)

链接:https://www.nowcoder.com/acm/contest/144/G 来源:牛客网   题目描述 In Viridian forest there is a tree T formed by N nodes, each edge on which has a positive weight. There is an undirected graph G generated...

Lee_w_j__的博客 720

Windows11安装配置openclaw+deepseek(大龙虾)

密码可以随便设置(注意wsl系统本质上是linux系统,设置密码系统是不会像windows一样显示*点位符的),输入密码后敲回车再次输入密码,输入后敲回车。如果不小心关闭这个界面,可以再次进入powershell,输入wsl进行系统。在powershell中输入:curl -fssL https://openclaw.ai/install.sh | bash。下面是否通过第3方平台和openclaw交互,我选择j最后一项:skip for now。到下面这一步,可以通过键盘的左箭头选择Yes.

mahailiang的专栏 345

2020牛客暑期多校训练营(第六场)

B.Binary Vector 传送门 题意:随机n个n维01向量,询问这个n个向量线性无关的概率 题解: O(n) 维护2的幂和2的幂的逆元。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const ll mod = 1e9 + 7; const int N = 2e7 + 5; ll f[N], c[2 * N]; void init() { f[1] = 5000..

。 391

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

题解 | Shorten IPv6 Address-2019牛客暑期多校训练营第六场B题

题目来源于牛客竞赛:https://ac.nowcoder.com/acm/contest/discuss 题目描述: 输入描述: 输出描述: 示例1: 题解: 代码: #include <bits/stdc++.h> const int N = 130; char s[N]; int a[N]; std::string get(int l, int r){ st...

lastbye的博客 224

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

题解 | Train Driver-2019牛客暑期多校训练营第六场H题

题目来源于牛客竞赛:https://ac.nowcoder.com/acm/contest/discuss 题目描述: 输入描述: 输出描述: 示例1: 题解: 代码: #include <bits/stdc++.h> inline int read(int &x) { int c; while (!isdigit(c = getchar())); x ...

lastbye的博客 268

2025牛客多校第六场D题解

及位于同一列的差分元素单调不增,又因为题目所说的每行元素单调不减,也就相当于每行的差分元素均大于0,而给个元素小于。个盒子的方案数,多出来的一个盒子是用来存放不需要的小球的,也就相当于前面的放入方法,那么总的方案数为。对于上述式子通过递推的方式已经可以过了,当然也可以对其进行进一步的更改,相当于将。,因为每一列的求解是相互不会影响的,那么我们就可以想到将 0 到。份,然后对于每个分配的值再进行上述的分别隔板,其方案等价于将。,用隔板法的思想进行求解,那么方案数为。的和,换句话说,设第一行的数组。

2403_88284978的博客 1125

2019牛客暑期多校训练营(第六场)D.Move

2019牛客暑期多校训练营(第六场)D.Move 题目链接 题目描述 After the struggle of graduating from college, TangTang is about to move from a student apartment to his new home. TangTang has n items to move, the i-th of which is of volume viv_ivi​. He can pack all these items into at

旺崽的博客 2736

2018杭电暑假多校知识点总结(附大一结语)

     大学的第一个年头就这样过去了,在这一年里,有着迷茫也有着奋斗,可惜没有什么汗水。我有不幸,不幸调剂到了软件工程这个陌生的专业,但我却又是幸运的,因为我遇到了一位优秀的学长,在他的指导下才步入了ACM的大坑,我不后悔,也未曾后悔过,我所敲的每一行代码每一道题都让我的大学生活变得充实而有意义,我不很在意最终的成就,但这个东西确实让我有意义有存在有兴趣的生活着。虽然我,资质愚钝,思维木讷,但我...

PleasantlY1的博客 1880

2020牛客暑期多校训练营(第六场)E-Easy Construction

2020牛客暑期多校训练营(第六场)E-Easy Construction /** 题目来源:2020牛客暑期多校训练营(第六场)E-Easy Construction 题目链接:https://ac.nowcoder.com/acm/contest/5671/E 题目类型:构造 题目大意:给你一个n,k,求一个关于n的排列,使得从这个排列中截取i(1<=i<=n)个长度的数字之和对n取模等于k 解题思路:首先当i等于n时,数字之和为n*(n+1)/2,这个数取模k,n&1时k

Starbucks 306

2020牛客多校第六场

B.Binary Vector 看样例,求逆元异或前缀和 #include<bits/stdc++.h> using namespace std; typedef unsigned long long ll; const int mod=1e9+7; const int maxn=2e7+10; ll ksm(ll x) { ll ans=1,n=mod-2; while(n) { if(n%2==1) ans*=x,ans%

Luoriliming的博客 561

2020牛客暑期多校训练营(第六场)

2020牛客暑期多校训练营(第六场)(2020.7.27) B、Binary Vector 虽然题目没有看懂,但是本场MVP浩大师发现了规律,f(x)=2x−12xf(x−1)f(x)={2^{x}-1\over 2^x}f(x-1)f(x)=2x2x−1​f(x−1)。然后把程序打出来就AC了。 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int MAXN = 2e7 + 10; const

牛马一枚 2624

2020暑假牛客多校第六场总结

2020暑假牛客多校训练赛第六场总结 关于比赛: 这次题解写的时间有点晚了… 还是之前说过的,目前的情况,队伍基本就只能去做几道思维题,算法题还没有开过(主要是思维题做完也就没时间了)。 说一下比赛的一些小问题,首先个人感觉队伍默契度在不断提高,但是有时候会集体断思路,导致一个题三个人卡死。其次,队伍普遍的算法功底还不是很理想,比如说碰到一个数位dp三个人就都不知道咋做了…还需要课下好好打磨。 然后这次比赛两道思维题的难度还是可以的,没有严格意义上的水题。整体的题目质量还是很好的。 题解: Easy Con

weixin_45671402的博客 245

2020牛客暑期多校训练营(第六场)——G Grid Coloring

2020牛客暑期多校训练营(第六场)——G Grid Coloring 题目描述 Roundgod draws a grid graph of size n×n cells. She can use one of k colors to color every edge once, but lzr gives her some limits. 1.lzr loves balance. All colors should appear in the same number of times. 2.lzr lo

cxkdad的博客 395

2019牛客多校第六场

2019牛客多校第六场 最近实验室装修搬东西有点忙,就一直拖到现在。。。 A. Garbage Classification solved at 00:14 签到题,垃圾分类 B. Shorten IPv6 Address solved at 00:48(+1) 给你一个二进制表示的ipv6地址,求最短表示 模拟即可,不用考虑最短且字典序最小怎么做,枚举出来就行了 D. Move sol...

a8786的博客 169

2024牛客暑期多校训练营第六场

模拟一下发现就是正多边形,然后按照规律割线,注意一下会发现k肯定具有对称性,因此可以让k小于n的一半,又发现如果穿过中心点,是一种特殊情况,且只会出现在偶数正多边形,进行特判,最后手动模拟一下,k为2~n/2,会发现k每次加一,画出来的图就会多n块,结论就出来了。

2301_79471581的博客 577

2020牛客暑期多校训练营(第六场)—— Harmony Pairs

2020牛客暑期多校训练营(第六场)——Harmony Pairs 题目描述 输入描述 The only line of input contains one integer N (1≤N≤10 100 ). 输出描述 Output one integer indicating the answer. 样例输入 100 样例输出 967 题目大意 题解 AC code #include <bits/stdc++.h> using namespace std; const int N=1

cxkdad的博客 438
上一篇: 计蒜客 Exponial (欧拉降幂)
下一篇: hdu 4734 F(x)(数位dp)
SwustLpf
博客等级 码龄9年 211粉丝 217原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值