POJ 1917 Automatic Poetry

当Kmer遇到多倍体:复杂基因组Survey分析中的避坑指南 本文针对小麦、棉花等多倍体及高杂合复杂基因组的Survey分析,深入解析了Kmer分布图解读中的常见陷阱。文章重点探讨了如何超越理想二倍体模型,利用Smudgeplot等工具准确判断基因组倍性,并提供了从参数优化、污染判断到结果验证的全流程实战指南,帮助研究者规避错误,获得更准确的基因组大小、杂合度等关键信息。 阅读详情

题目大意:对输入的每一对字符串进行处理:

输出有两行(1)第一行不要把"<"">"的符号输出  (2)第二行用(1)上面的<>隔开的相应字符串拼成的结果代替"..."输出

思路:模拟的有点恶心阿,关键是对<>分开的字符串进行处理,我的思路是先记录好下标,然后根据下标把字符串取出来,然后最后整体输出结果即可


Ac Program:

#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
char l1[105];
char l2[105]; 
char c1[105],c11[105];
char c2[105]; 
int c1Num,c2Num,c11Num;
void gn(char ch[],int s,int t)
{
    
    for(int i=s+1;i<t;i++)
    {
       c11[c11Num++]=ch[i];        
    }    
} 
void fn() 
{
  memset(c1,0,sizeof(c1)); 
    memset(c2,0,sizeof(c2));
      memset(c11,0,sizeof(c11));
  int len1=strlen(l1); 
  int len2=strlen(l2); 
  c1Num=0,c2Num=0,c11Num=0; 
  //处理第一行 
  for(int i=0;i<len1;i++)
  {
    if(l1[i]!='<'  &&  l1[i]!='>')
        c1[c1Num++]=l1[i];   
  }
  int t1,t2,t3,t4,tmp;//记录位置
  bool f1=true,f2=true; 
  for(int i=0;i<len1;i++)
  {
      if(f1&&l1[i]=='<') 
         {
           t1=i;
           f1=false;                
         }
      else if(!f1&&l1[i]=='<')
         {
           t3=i;                     
         }
      else if(f2&&l1[i]=='>') 
         {
           t2=i;
           f2=false;                
         }
      else if(!f2&&l1[i]=='>')
         {
           t4=i;                     
         } 
          
  }
  gn(l1,t3,t4);//找出相应符号段的字母,保存在c11里面 
  gn(l1,t2,t3);
  gn(l1,t1,t2);
  gn(l1,t4,len1);
  //处理第二行 
  for(int i=0;i<len2;i++)
  {
     if(l2[i]=='.')break; 
     c2[c2Num++]=l2[i];       
  }
     
}
void output()
{
  printf("%s\n",c1);
  printf("%s",c2);
  printf("%s\n",c11);     
} 
int main()
{
//freopen("f.out1.txt","w",stdout); 
int nPairs;
scanf("%d",&nPairs); 
getchar();//吃掉回车要注意位置,最好找word找思路 
while(nPairs--) 
{
     
    gets(l1);
    gets(l2);
    fn();
    output(); 
                              
}
//system("pause");
return 0;} 


Agile Modbus使用和学习笔记 i < len;这里仅仅需要提供获取函数即可,离散输入是只读类型i++) {return 0;只读类型寄存器i++) {return 0;i < len; 阅读详情

相关推荐

汇川伺服Modbus-RTU通讯实战:从帧结构解析到西门子PLC配置

本文详细解析了汇川伺服与西门子PLC通过Modbus-RTU协议进行通讯的实战步骤,包括帧结构解析、硬件连接、参数设置及PLC程序配置。通过具体案例和常见问题排查指南,帮助工程师快速掌握工业自动化中的通讯技术,提升设备调试效率。

weixin_33670713的博客 453

POJ 1917

http://poj.org/problem?id=1917 poj的字符串的一道水题。 题意么无关紧要, 反正输出的第一行就是把那个<>去掉,s1<s2>s3<s4>s5, 也就是第一行就是输出s1s2s3s4s5就行。 第二行就是输出s1s4s3s2s5就可以。 1 #include <stdio.h> 2 #...

A1823085974的博客 153

用Stata复现经典文献:上市公司全要素生产率(TFP)计算全流程(含LP/OP代码解读)

本文提供了使用Stata软件复现上市公司全要素生产率(TFP)计算的完整实战指南。重点解读了主流的Levinsohn-Petrin(LP)和Olley-Pakes(OP)半参数估计方法,通过详细的数据清洗、变量构建与价格平减步骤,手把手演示了如何准确测算TFP,并强调了LP方法在处理中国上市公司数据时的稳定性和适用性。

b0c1d2的博客 594

poj 1917 Automatic Poetry

//主要就是考察输入输出的题目,竟然用了那么久来解决这个问题!自己的基础还不行! #include #include #include using namespace std; int main() { int tc, len1, len2, i, j, pos1, pos2, pos3, pos4; string input1, input2, s1, s2, s3,

yzl_rex 689

Monocle2在R 4.3环境下的终极避坑指南:从安装到可视化全流程解析

本文提供了在R 4.3环境下安装和运行Monocle2的完整解决方案,重点解决了依赖包兼容性、源码修改及BEAM分析报错等关键问题。文章详细解析了从环境准备、依赖包处理、源码安装验证到从Seurat对象转换、拟时轨迹构建、高级可视化及性能优化的全流程,旨在帮助用户顺利完成单细胞拟时分析。

weixin_29206669的博客 1355

FPGA实战 —— 基于UART的多设备串口通信系统设计

本文深入探讨了基于FPGA的多设备UART串口通信系统设计。针对工业控制与物联网应用中一对多通信的需求,文章对比了共享总线式、多路独立式等硬件连接方案,并详细阐述了可配置UART IP核、波特率自适应算法以及多路数据仲裁与分发逻辑等核心设计要点。最后,通过一个四传感器采集节点的实战案例,展示了从硬件连接到Verilog代码实现的完整系统构建过程。

weixin_29172963的博客 234

POJ 1917 Automatic Poetry G++

#include #include //一定要好好学习博友的文章 using namespace std; int main() { int NUM; cin>>NUM; vector jg; string t; getline(cin,t); for(int i=0;i<NUM;i++) { string str1; string str2; getline(ci

woniupengpeng的专栏 710

10-Oracle 23 ai Vector Search 概述和参数

企业和个人都在尝试各种AI,使用客户端或是内部自己搭建集成大模型的终端,加速与大型语言模型(LLM)的结合,同时使用检索增强生成(Retrieval Augmented Generation :RAG)功能,RAG能够将LLM的生成能力与知识库的精准资料库进行检索结合,将大模型部署在内部同时将私有的数据进行LLM的检索避免泄露企业专用的数据同时提高的准确性。于是如何将数据存入向量数据库以及向量查询等这些基本功能变得必备和重要。

远方的专栏 1294

poj 1917

题目理解错误:第一行:  形式是:s1s3s5,只切分成5段,si可能为空或空格;第二行输出形式: ***s4s3s2s5; 就这么简单,还以为要区分单词的,做得很复杂。

HomePage的专栏 424

人形机器人新产品导入(NPI)工艺工程师的角色与技术解析

本文系统解析人形机器人NPI工程师的核心职责与能力要求。主要内容包括:1)NPI工程师需主导装配工艺设计、样品试做及问题闭环,涉及公差分析(如尺寸链计算)、工艺评审与FMEA应用;2)要求输出完整工艺文档体系,并跟踪试产至量产全过程;3)任职资格强调3年以上机器人/智能制造行业经验,掌握SPC、公差计算等质量工具,熟悉点胶/焊接等工艺及特殊材料特性;4)通过实际案例展示关节精度优化、新物料验证等典型工作场景;5)提供基于职责的面试问题及技术性解答方案。文章聚焦技术细节,为从业者提供实用参考框架。

郑伟强dev的专栏 381

从被秒封到稳过Cloudflare!Canvas/WebGL/WebRTC多维度浏览器指纹隐身全实战

反爬和反反爬,本质上是一场持续的博弈,没有100%的隐身,只有不断升级的伪装。网上很多教程只给了个基础的噪声代码,却没讲透反爬的检测逻辑,导致你用了还是被封。这套方案的核心,不是简单的API重写,而是站在反爬的角度,模拟真实用户的所有特征,保证所有指纹的一致性、合理性、完整性。目前这套方案我用了半年,跑了上千万次请求,稳过国内国外99%的主流反爬平台,没有出现过一次因为指纹关联导致的批量封禁。大家有什么更狠的反爬场景,或者更好的伪装技巧,欢迎评论区一起交流。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 1193

POJ1917 UVA10361 Automatic Poetry【文本】

Automatic Poetry Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 2373 Accepted: 1176 Description Background “Oh God”, Lara Croft exclaims, “it’s one of these dumb riddles again!” In Tomb ...

海岛Blog 518

深入浅出讲解外部服务提供者 OAuth 2.0 帐户客户端创建与 ABAP 系统集成

本文详细介绍了在SAP ABAP平台配置OAuth 2.0客户端以安全调用外部Web服务的完整流程。主要内容包括:首先需要在外部服务提供者平台注册OAuth客户端,获取client ID和client secret;其次需特别注意重定向URI必须是公开可访问的地址;然后在ABAP系统中通过事务码OA2C_CONFIG配置OAuth客户端信息;最后阐述了常见的错误排查方法。文章强调了OAuth 2.0作为SAP系统与外部服务安全集成的标准协议,正确配置客户端是确保后续API调用安全可靠的关键前提。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 1734

岭师OJ——1917(rabbits)

1917: Rabbits 题目描述 兔子有很强的生育能力,1对成年兔子可以每月生出1对幼年兔子。并且m个月后,幼年兔子成长为成年兔子。 当m=2时,每月兔子的对数是一个Fibonacci序列。不过在m&lt;&gt;2时候问题就不是那么简单了。如果一开始只有1对成年兔子,你的任务是计算d个月后有多少对兔子。你可以假设这期间没有兔子死去。 输入 包含多个测试用例,每个测试用例在一行上是...

AdventL的博客 1294

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

URAL - 1917 Titan Ruins: Deadly Accuracy(水题)

水题一个,代码挫了一下: 题意不好理解。 你去一个洞窟内探险,洞窟内有许多宝石,但都有魔法守护,你需要用魔法将它们打下来。 每个宝石都有自己的防御等级,当你的魔法超过它的防御等级时它就会被你打下来。 但是,当它被你打下来的时候,它会反弹你的魔法。如果反弹的魔法过强,你就会被自己的魔法杀死。 很不幸的是,你的魔法是群体性的,你不能选择攻击谁,只要防御等级低于你魔法水平的

稻草人 778

深度学习工具包 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")

子序列最大和

1919: D Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 167  Solved: 35 SubmitStatusWeb Board Description 晴天想把一个包含n个整数的序列a分成连续的若干段,且和最大的一段的值最小,但他有强迫症,分的段数不能超过m段,然后他就不会分了。。。他想问你这个分出来的和最大的一

~★sunshine☆的博客专栏 433

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

POJ3259 Wormholes(虫洞)(Bellman-floyd法解决)

题目大意:农夫FJ喜欢在自己的农场里面玩穿越,而虫洞-----就是就是一种是时间倒退的时光机(单向的)(A wormhole is very peculiar because it is a one-way path that delivers you to its destination at a time that is BEFORE you entered the wormhole!)  但

muxi@Achilles的专栏 2136

POJ2773 HAPPY 2006(不能对LL大方之战)

题目大意:就是求m的第k个(升序)与m互质的数。 思路:看了discuss才知道欧拉函数 的一个性质可以解决这道题:就是如果在[1,m]之间有cnt个数和m互质,即欧拉函数为cnt,那么在[n*m+1,(n+1)*m](n为正整数)区间内的欧拉函数也为cnt,即是有循环节。这就好办了,循环节最大才为100万,那么找到k/cnt这个区间,就可以枚举求得第K个数了。不过我写的实在很猥琐,1670ms

muxi@Achilles的专栏 1739

POJ1511 SPFA经典题目

Orz,做这道题对我这个初学者来说真是呕心沥血了!写了一上午,然后调试了一下午。然后WA了3次!哇靠,就是因为坑爹的POJ数据,题目明白说了price的sum不会超int的 但最后还是要用long long 才过!奶娘的! 在这里感谢羽哥的数据还有long long的提醒。   题目大意:发传单!怎么样选择路线 使得Acmers们在去  和回的过程 花掉的车费最少。 思路:因为每个人负责一

muxi@Achilles的专栏 1686

POJ2042 Lagrange's Four-Square Theorem

题目大意:拉格朗日定理:每个自然数均可以表示成4个正整数的平方数之和。下面这一句,不知所云:3个平方数之和不能表示形式如4^k(8n+ 7)的数。 如果在一个正整数的因数分解式中,没有一个数有形式如4k+3的质数次方,该正整数可以表示成两个平方数之和。     思路:暴力枚举,但是不必为每个n来验证,而是让四个数滚动起来,只要小于2^15的就可以保存并在此基础上统计个数,然后打个表~~撸过~~

muxi@Achilles的专栏 1586

POJ3259 Wormholes(虫洞)(SPFA解决)

题目大意&&思路:农夫玩穿越,找负环经典问题, 思路一:SPFA轻松撸过:原理:某一个节点入队n次的话则存在负环。(200ms) 思路二:Bellman-floyd 也OK:http://blog.youkuaiyun.com/kg_second/article/details/7888273   (其实在这道题思路二更快125ms,SPFA在数据大的时候才霸气尽出)   AC program: #

muxi@Achilles的专栏 1491

2013省赛前夕碎碎结

2013 10 8 poj3349(数字哈希的运用) /* 题目大意:就是在给出的雪花当中判断有没有至少一样的一对雪花。 利用哈希找出少数总和长度相等的雪花,然后在通过顺时针和逆时针枚举6^2长度的雪花 进行比较看雪花是否相等即可 思路:在10W片雪花中直接比较雪花明显不可,但是经过哈希之后可以边插入边比较。 */ #include using namespace std;

muxi@Achilles的专栏 1435

POJ2488 A Knight's Journey(DFS)

题目大意:问一个骑士能否不重复地踏遍整个棋盘。 思路:因为输出有一个坑爹的要求:Then print a single line containing the lexicographically first path that visits all squares of the chessboard with knight moves followed by an empty line.

muxi@Achilles的专栏 1430

POJ1166 the clocks

题目大意:给出原始9个表watch,通过9个操作operation,求最少操作数使得9个watch都指向12点.每一次operation,会对相应涉及到的watch顺时针调整15分钟.   思路: 对于每种操作,操作次数不会超过3次,因为4次以上就会有无意义的步数,为什么无意义?因为和前面的操作状态重复了. 为什么这样会重复呢?其他的操作对表的影响下再操作就不会与重复了呀!这是因为每一次操

muxi@Achilles的专栏 1304

POJ3087 Shuffle'm Up

题目大意&&思路: 单方向查找某个目标,也算是搜索,只不过是单向搜索 BFS。 小小的用了一下MAP AC program: #include #include #include #include #include #include #include #include using namespace std; int n; string str1,str2,strpp; int cas,

muxi@Achilles的专栏 1299

POJ1699 Best Sequence 暨2013年USC校赛D题

今晚有点失望,但是也是自己作祟,不能对自己喜欢的girl有太多的要求,至少不能想要求自己一样....因为严于律己宽于待人嘛~~~  题目思路:给出n(n   思路:这个题目爆搜可以求解,但是最近做了道状态压缩DP,所以坚持用状态压缩DP去做了,但是这个题目描述真的是很坑爹,注意一点就可以了:是不能存在包含在内的情况出现,必须是首尾相连的,考虑到这一点就基本可以了. 比如这组数据: 2

muxi@Achilles的专栏 1221
上一篇: HDU 2137 circumgyrate the string
下一篇: UVA 10815 Andy's First Dictionary
muximuxi525
博客等级 码龄15年 134粉丝 294原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值