当前位置:编程学习 > C/C++ >>

那些0ms的神代码之谜

其实有些跑了0ms的代码是用全部测试数据爆出来的(不排除是测试人员爆 的),另外我发表此篇博文的目的也不是鄙视那些跑测试数据的人 ,而是希望广大ACMer不要再崇拜那些神代码了,其实你的代码已经很不错了。凭着自信做下去就好了!!!
下面我来贴一下这样的神代码。。
[cpp]  
#include<iostream>  
#include<cstdio>  
#include<cstring>  
using namespace std;  
int n,m;  
char S[1000][40]={"1","10","102","1020","10200","102000","1020005","10200056","102000564","1020005640","10200056405","102006162060","1020061620604","10200616206046","102006162060465","1020061620604656","10200616206046568","108054801036000018","1080548010360000180","10805480103600001800","123606009012225672009","1236060090122256720090","12360600901222567200901","144408645048225636603816","3608528850368400786036725","-1","-1","-1","-1",  
"-1","10","102","1020","10200","102000","1020005","10200056","102000564","1020005640","10200056405","102006162060","1020061620604","10200616206046","102006162060465","1020061620604656","10200616206046568","108054801036000018","1080548010360000180","10805480103600001800","123606009012225672009","1236060090122256720090","12360600901222567200901","144408645048225636603816","3608528850368400786036725","-1","-1","-1","-1",  
"-1","-1","102","1020","10200","102000","1020005","10200056","102000564","1020005640","10200056405","102006162060","1020061620604","10200616206046","102006162060465","1020061620604656","10200616206046568","108054801036000018","1080548010360000180","10805480103600001800","123606009012225672009","1236060090122256720090","12360600901222567200901","144408645048225636603816","3608528850368400786036725","75320424003636007240884008","753204240036360072408840084","7532042400363600724088400840","-1",  
"-1","-1","-1","1000","10000","100002","1000020","10000200","100002006","1000020060","10000200606","100002006060","1000027260128","10000272601284","100002726012840","1000027260128400","10000832402470569","101208807048720006","1016582400964208520","10165824009642085200","104052249072240066402","1040522490722400664022","10405224907224006640223","144408645048225636603816","1828022400607200846092400","18280224006072008460924002","753204240036360072408840084","7532042400363600724088400840","-1",  
"-1","-1","-1","-1","10000","100002","1000020","10000200","100002006","1000020060","10000200606","100002006060","1000027260128","10000272601284","100002726012840","1000027260128400","10000832402470569","100956888012540816","1016582400964208520","10165824009642085200","104052249072240066402","1040522490722400664022","10405224907224006640223","119952000084840030408408","1301587290367056900064800","13015872903670569000648008","528552567072465642000840006","7532042400363600724088400840","-1",  
"-1","-1","-1","-1","-1","100002","1000020","10000200","100002006","1000020060","10000200606","100002006060","1000027260128","10000272601284","100002726012840","1000027260128400","10000832402470569","100116162084960054","1001406420365408286","10014064203654082860","101082888060705684000","1029126420361200420006","10326688207290084640567","103266882072900846405672","1032668820729008464056725","10326688207290084640567258","392088960012120066801672588","3920889600121200668016725880","39208896001212006680167258804",  
"-1","-1","-1","-1","-1","-1","1000006","10000064","100000647","1000006470","10000064701","100000647012","1000006470125","10000064701256","100001367072180","1000013670721808","10000136707218087","100003446072465678","1000034460724656782","10000344607246567820","100003446072465678204","1000034460724656782040","10022184007290082800925","100706967024300864801288","1012788810007808586060725","10326688207290084640567258","140865282036780876603600003","1408652820367808766036000036","18555536703606084000060008482",  
"-1","-1","-1","-1","-1","-1","-1","10000000","100000008","1000000080","10000000802","100000008024","1000000080248","10000000802484","100000008024840","1000000080248400","10000072808446565","100001763072960030","1000017630729600301","10000344607246567820","100003446072465678204","1000034460724656782040","10003824006022562480160","100038240060225624801600","1000382400602256248016000","10003824006022562480160006","100038240060225624801600066","1015500060367808224022400608","10211576408418088880443254681",  
"-1","-1","-1","-1","-1","-1","-1","-1","100000008","1000000080","10000000802","100000008024","1000000080248","10000000802484","100000008024840","1000000080248400","10000001704812002","100000179072360072","1000001880969008586","10000018809690085860","100000188096900858606","1000001880969008586064","10001501103622563080700","100015011036225630807000","1000150110362256308070000","10003824006022562480160006","100038240060225624801600066","1001385810724656966004325888","10101279606082569080443254680",  
"-1","-1","-1","-1","-1","-1","-1","-1","-1","1000000000","10000000109","100000002084","1000000060449","10000000604496","100000006044960","1000000060449600","10000001209254080",&q
补充:软件开发 , C++ ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,