parent
48ec4912ca
commit
bd2fdb699e
|
@ -18,7 +18,10 @@
|
|||
"ostream": "cpp",
|
||||
"streambuf": "cpp",
|
||||
"type_traits": "cpp",
|
||||
"typeinfo": "cpp"
|
||||
"typeinfo": "cpp",
|
||||
"deque": "cpp",
|
||||
"string": "cpp",
|
||||
"vector": "cpp"
|
||||
},
|
||||
"terminal.integrated.automationShell.windows": "cmd.exe",
|
||||
"files.encoding": "gb18030",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
Binary file not shown.
|
@ -0,0 +1,11 @@
|
|||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
long long n,ans=0;
|
||||
cin>>n;
|
||||
for(int i=0;i*i*i<=n;i++){
|
||||
ans+=floor(sqrt(n-i*i*i))+1;
|
||||
}
|
||||
cout<<ans;
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
6
|
|
@ -0,0 +1 @@
|
|||
60
|
|
@ -0,0 +1 @@
|
|||
6000
|
|
@ -0,0 +1,18 @@
|
|||
## z:\Chao\src\3045_fangcheng\test\in.txt
|
||||
2020/04/18 ÖÜÁù 9:03:33.38
|
||||
6
|
||||
-----------------------------------------------
|
||||
Process exited after 200 ms with return value 0
|
||||
|
||||
## z:\Chao\src\3045_fangcheng\test\in2.txt
|
||||
2020/04/18 ÖÜÁù 9:03:33.38
|
||||
30
|
||||
-----------------------------------------------
|
||||
Process exited after 90 ms with return value 0
|
||||
|
||||
## z:\Chao\src\3045_fangcheng\test\in3.txt
|
||||
2020/04/18 ÖÜÁù 9:03:33.38
|
||||
1236
|
||||
-----------------------------------------------
|
||||
Process exited after 70 ms with return value 0
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
Binary file not shown.
|
@ -0,0 +1,32 @@
|
|||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
vector<int> has;
|
||||
int yi[100001]={0},er[100001]={0};
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
cin>>n;
|
||||
for(int i=0;i<n;i++){
|
||||
cin>>yi[i];
|
||||
}
|
||||
for(int i=0;i<n;i++){
|
||||
cin>>er[i];
|
||||
}
|
||||
sort(yi,yi+n);
|
||||
sort(er,er+n);
|
||||
int maxs=yi[0]+er[n-1];
|
||||
for(int i=0;i<n;i++){
|
||||
for(int j=0;j<n;j++){
|
||||
int now=yi[i]+er[j];
|
||||
if(i==0||now<maxs){
|
||||
has.push_back(now);
|
||||
}
|
||||
}
|
||||
}
|
||||
sort(has.begin(),has.end());
|
||||
for(int i=0;i<n;i++){
|
||||
cout<<has[i]<<" ";
|
||||
}
|
||||
}
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
|||
361
|
||||
138965836 -957997699 -534486064 51449361 -920889871 -251317650 -845723575 995660702 703793468 -63961799 489769681 198679467 981136418 774828154 231857422 -787875065 -466471094 -433324304 598838215 429926882 557362269 -957511665 120203978 783499921 694180443 972377538 -885333847 146326251 -80798338 -623572587 -251004479 740524971 -284064725 317489023 -179278384 666277692 -844743857 382723137 324129678 487076259 -331875099 95528784 -494561930 84799783 -773879623 -16893406 207259044 -300185807 -917209198 29539808 364581011 913072771 338513310 181021176 79387274 670084866 -449465949 -190481337 355109819 -922826716 281980014 174586481 -774200707 -31477010 -118920507 -729320057 171812305 -634719513 255812724 620890765 -574122981 964589072 -623623469 -90851811 770861445 -880832917 -72776565 825921701 338452317 -548521757 520816749 -987807502 -475250533 -413224352 -141246642 595893504 241564191 706775664 -710202833 134176718 -96623868 39123097 -782208025 508089616 -962827045 898207404 507054557 -60772795 328320154 998240385 204384186 -158124992 336049368 386989002 189207980 733738140 -409063607 987848200 171607087 906885239 -41528109 -353614898 -593794670 797507244 -986277368 -233620216 278711586 497770859 496828650 -789727020 -816124964 472163999 -222687678 988542761 -970646974 -837514608 -965768535 543853338 933386185 -467202573 -750134262 -400619108 93616260 -649061356 979427253 612593230 435608797 408548294 -567029314 -548540952 -171571870 -39291862 846527075 -741170606 8540069 -137017091 466081732 -339313506 467118754 -633516300 -109501270 992679599 -804799774 756462339 6608136 500479084 -471113843 -697359152 -47884227 422845347 455537065 823596903 -743428256 -239647094 -964477283 -769699484 47003268 -812408832 -730085849 491294738 -116713819 995748900 573862197 807981319 -307091033 720034261 -626715651 -244887303 436401638 714037743 520715814 -964617586 -891682504 467540670 46181382 216568965 435942963 44241679 -254297385 805430744 -225173554 576254454 181549356 474010447 770804893 651447545 432041309 29973022 248879160 -950172206 492308983 -575954139 526389035 549174993 -220078701 553514326 -35194021 -906721471 83135014 -874387305 -108479967 319578897 -394931106 -280442520 246370196 -952852296 -225768719 188228363 -290070708 378866243 736300212 -779718609 -283290855 382206138 -718142303 271592184 963086751 570603239 860234471 -184565950 -580929163 -142942072 966885251 890353167 27205156 1661053 -3466201 621365476 -35595733 -967542412 426997582 -473829125 -329979176 30105921 -745521596 -440745770 723082972 -345659721 -985896862 842655322 -374690926 -671240317 -619854283 809510743 449654170 985781918 103402150 -752294400 -744029377 826941592 631019823 -987553369 -660527091 56834767 -732752818 -245628997 -882068751 457664242 -433592527 50301445 -585037158 -770402680 -509239651 -125163234 -879589676 928909387 -346333530 -442741761 122620893 551829332 -121081585 351071873 -8744309 -513337844 -581979118 278088039 331602222 90535081 -123399735 -22970258 -126371316 -639295051 717953245 864147256 645851480 792258721 166028901 -853438099 572667487 -277986510 281796490 226641620 265669356 -706487389 -383124953 -626286518 -237251452 963861195 210808815 24055181 -788591767 392894403 663246338 359473428 669601968 -255169954 -767849864 116504089 -42995619 382868135 -714045388 621245994 83077154 983313757 -680552112 -832031157 680897753 172980838 -925789271 217251886 663263426 509717338 318511957 -792425422 -39629181 81837235 961850719 -158592400 669229783 -694435035 -104254376 52355423 -656182716 573045790 -475981550 315439819 511903062 -775511501 993677040 64598904 -460281983 640544055 -121703762 -272486236 410932384 -311760019 -909406375 744029062 672417742 -407733162 -563080353
|
||||
-39506037 386712989 -571545029 -369098156 -635386510 -891167700 892867893 -484849053 791835880 -414002446 826452880 215076200 594510556 -964671611 -857450741 -292591075 -805764180 -922582067 -829325720 -105239264 -422706151 -524024559 608234000 928104554 -343201410 317135718 -571102649 528500979 -179807193 -96203045 804222798 -647534063 -47125148 603939016 -514834582 294693361 568676074 744452812 897652925 -906863389 -357455249 801662 -251307367 653937920 675015263 -183340348 910367577 533825901 -623316369 -606032165 -197160440 -936209848 -715510544 -805019475 178709187 -861537238 -903246894 320858358 -615391192 921955396 -995045972 -521350507 -374634311 43631151 -31556511 -143947988 -638392293 864230349 -28978577 -847256261 588073408 564814239 -101574247 -800301911 -496470309 -761671104 -922971553 -137561237 869479372 898680341 -153609568 343708663 667030626 18729567 -461917121 473886080 883036589 348675460 515910447 682358890 95291795 111298130 271942588 127443682 586175157 237187213 -604988660 178998829 -872843312 -204199784 893126825 -438677738 120539757 -926921738 -602415576 569903508 886631891 170817784 812069422 457208894 177262433 -162110975 -646070099 -864173945 -756147310 816044677 -911325773 -246373243 -73272839 -145577516 -503087030 714315950 -258136210 -992202008 77875891 371319968 529948658 299497661 -855982358 -296477319 -910682001 -392689655 -547171117 908044745 350702201 -327141085 -569990245 35541338 189191037 -155978726 295681410 619136617 -376254261 62942777 -915599304 812476174 -167765535 313246246 495922700 867727715 90025367 489380128 336718182 -266029443 -11264396 -708614635 517260615 894316207 -390616420 -874594622 100237753 886060083 639634523 82251633 435824177 -993830671 -953769742 -852101638 80243637 687359033 -752382649 -208770897 201895523 -293734558 309590668 714858402 -123926115 -508631237 546418906 -773341317 -604306115 -653154141 409790643 -632629932 -276142249 -453792689 -581812738 -954203118 708777864 -192137052 -763820074 -544121125 403069735 -609098137 -328196487 857607639 -913587250 264515320 832651671 -488858862 -261388926 -326514112 -561566143 149385999 998990107 -735186025 -166617819 -126719516 838330117 -969170047 -545304803 -648341743 414386275 549766681 -118711985 -152973434 177637422 645750464 150011732 320791512 367354653 345241975 -901406090 -544124977 689745037 -698616431 -256643126 244131998 725968486 -205959647 216425982 653894395 527787175 401935569 -744087346 730999491 526035067 586104380 337046344 772295808 -471527867 24932126 -804597229 -75718869 492240759 -32191712 -656897640 -186034294 -401565512 256653690 994914691 -101595559 -321571891 165507420 396196190 -263637343 -656267108 -294742480 -614464697 341022565 -963536020 899220345 -858047336 -6872768 -779985694 928213727 179169351 374117384 950503302 -738241971 131705165 641032248 -768209514 848497930 590506220 -32673947 711988914 303341691 663446115 860355029 105910266 -227227073 152825390 32178621 -606839123 -341635784 -787984982 -179807017 -688078687 536980462 -994859271 -766165206 -302966526 644450236 200353410 -549097899 -500214036 82844998 333965862 -710189534 50836964 -7276733 824470866 -378319002 863237633 490147087 -755375450 -402181653 -903001626 985090591 973797184 -427566750 567878163 747722429 530086860 909426636 -444187799 409597546 -499721528 -12371133 347418768 -190420931 990209306 288564565 -135983012 -993004701 743061011 -379344183 -889990218 -228604877 468694805 -82557425 -742032226 -455176894 925777300 -857983749 -37036152 -131448476 166607541 947486024 -929080515 -448177364 -879422391 -198953728 -900355794 208905401 -760033656 -963569966 -622046104 -522572935 63525830 -751808260 -742400966 -832151241 353749654 626300295 732725219 842370361 484266020 450350151 -737066675
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
|
@ -0,0 +1,3 @@
|
|||
# 标题
|
||||
|
||||
* 内容
|
Binary file not shown.
|
@ -0,0 +1,17 @@
|
|||
#include <iostream>
|
||||
using namespace std;
|
||||
bool pan[1000000001]={0};
|
||||
int main()
|
||||
{
|
||||
int n,now=1;
|
||||
for(int i=0;now<=1000000000;i++){
|
||||
now+=i;
|
||||
pan[now]=1;
|
||||
}
|
||||
cin>>n;
|
||||
for(int i=1;i<=n;i++){
|
||||
int u;
|
||||
cin>>u;
|
||||
cout<<pan[u]<<endl;
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -0,0 +1,101 @@
|
|||
100
|
||||
1619
|
||||
7777
|
||||
36
|
||||
5486
|
||||
9320
|
||||
733
|
||||
4428
|
||||
5009
|
||||
9509
|
||||
1255
|
||||
6207
|
||||
977
|
||||
751
|
||||
5352
|
||||
1920
|
||||
2950
|
||||
1074
|
||||
2619
|
||||
117
|
||||
8495
|
||||
256
|
||||
3346
|
||||
297
|
||||
1295
|
||||
3590
|
||||
1854
|
||||
1550
|
||||
1861
|
||||
4528
|
||||
7233
|
||||
876
|
||||
2653
|
||||
9595
|
||||
5408
|
||||
7386
|
||||
5234
|
||||
6185
|
||||
2038
|
||||
1252
|
||||
347
|
||||
9892
|
||||
7222
|
||||
4340
|
||||
8147
|
||||
4271
|
||||
3104
|
||||
7699
|
||||
9138
|
||||
8160
|
||||
1895
|
||||
9742
|
||||
2151
|
||||
1265
|
||||
7821
|
||||
6271
|
||||
309
|
||||
6091
|
||||
3841
|
||||
9254
|
||||
6693
|
||||
8690
|
||||
7604
|
||||
661
|
||||
952
|
||||
7549
|
||||
7429
|
||||
2387
|
||||
2189
|
||||
4050
|
||||
9230
|
||||
8453
|
||||
7792
|
||||
9850
|
||||
5567
|
||||
875
|
||||
203
|
||||
6378
|
||||
1133
|
||||
2382
|
||||
2958
|
||||
1365
|
||||
4795
|
||||
8907
|
||||
9289
|
||||
1877
|
||||
6611
|
||||
5792
|
||||
5361
|
||||
387
|
||||
2748
|
||||
2575
|
||||
865
|
||||
8341
|
||||
1593
|
||||
4670
|
||||
688
|
||||
5440
|
||||
7092
|
||||
9690
|
||||
2031
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue