-
个人简介
play: MC:https://www.crazygames.com/
study: 算法(索引) 01背包 https://world.xiaomawang.com/w/playground-python/647415
完全背包 https://world.xiaomawang.com/w/playground-python/703493
深搜 https://world.xiaomawang.com/w/playground-python/624437
广搜 https://world.xiaomawang.com/w/playground-python/604092
二分查找 https://world.xiaomawang.com/w/playground-python/534589
CSP初赛知识点(索引) 位运算: http://ac.cqxiaomawang.com:8888/d/JX_230711_02/homework/64b74a4813accdb4daf9837e
二叉树性质: http://ac.cqxiaomawang.com:8888/d/JX_230711_02/homework/64b2044713accdb4daf0276f
图的理论知识 https://world.xiaomawang.com/w/playground-python/739884 http://ac.cqxiaomawang.com:8888/d/JX_230711_02/homework/64b131ff13accdb4daef625c
字符串: https://world.xiaomawang.com/w/playground-python/739093 http://ac.cqxiaomawang.com:8888/d/JX_230711_02/homework/64b006a213accdb4daec307a
数据结构(索引) deque(双端队列) https://world.xiaomawang.com/w/playground-python/742853
vector(动态数组)常用函数 https://blog.csdn.net/csg999/article/details/103898870/
queue(队列) https://world.xiaomawang.com/w/playground-python/743850
stack(栈) deque(双端队列) https://world.xiaomawang.com/w/playground-python/742853
vector(动态数组)常用函数 https://blog.csdn.net/csg999/article/details/103898870/
queue(队列) https://world.xiaomawang.com/w/playground-python/743850
#include<bits/stdc++.h> using namespace std; long long a1[1000001],a2[1000001],cnt1,cnt2,sum; bool cmp(int x,int y){ return x>y; } int main(){ freopen("num.in","r",stdin); freopen("num.out","w",stdout); int n,x; cin>>n; for(int i=1;i<=n;++i){ cin>>x; if(x%2)a1[++cnt1]=x; else a2[++cnt2]=x; } sort(a1+1,a1+cnt1+1,cmp); sort(a2+1,a2+cnt2+1,cmp); int len=min(cnt1,cnt2); for(int i=1;i<=len;++i){ if(a1[i]+a2[i]<=0)break; sum+=a1[i]+a2[i]; } cout<<sum; return 0; }
-
通过的题目
- P111
- P112
- P113
- P114
- P119
- P122
- P125
- P127
- P129
- P136
- P139
- P142
- P144
- P145
- P152
- P155
- P156
- P157
- P162
- P192
- P202
- P203
- P208
- P225
- P227
- P228
- P237
- P239
- P241
- P243
- P256
- P257
- P259
- P268
- P277
- P279
- P281
- P285
- P290
- P300
- P315
- P316
- P325
- P344
- P345
- P347
- P348
- P350
- P353
- P355
- P360
- P362
- P365
- P371
- P372
- P386
- P387
- P399
- P405
- P406
- P407
- P409
- P410
- P413
- P414
- P429
- P449
- P453
- P465
- P467
- P469
- P470
- P472
- P474
- P476
- P477
- P478
- P482
- P483
- P486
- P487
- P492
- P495
- P499
- P502
- P504
- P507
- P508
- P515
- P516
- P539
- P542
- P553
- P554
- P555
- P556
- P558
- P584
- P585
- P595
- P617
- P622
- P627
- P646
- P648
- P649
- P667
- P668
- P669
- P670
- P678
- P679
- P712
- P724
- P725
- P735
- P760
- P764
- P765
- P796
- P818
- P827
- P835
- P836
- P841
- P865
- P888
- P918
- P924
- P925
- P927
- P932
- P944
- P947
- P972
- P1013
- P1014
- P1021
- P1024
- P614
- P604
- P1068
- P1069
- P1071
- P1086
- P1087
- P1088
- P1089
- T1
- T10
- T11
- T12
- T13
- T14
- T15
- T16
- T164
- T17
- T18
- T19
- T2
- T20
- T21
- T214
- T22
- T23
- T235
- T24
- T246
- T25
- T26
- T262
- T266
- T27
- T272
- T28
- T29
- T299
- T3
- T337
- T386
- T4
- T5
- T6
- T7
- T8
- T9
- P1992
- P2053
- P2056
- P2013
- P2100
- P2139
- P2165
- P2189
- P2015
- P2192
- P2016
- P2194
- P2221
- P2224
- P2225
- P2229
- P2234
- P2237
- P2311
- P2339
- P2349
- P2350
- P2352
- P2354
- P2375
- P2376
- Y2
- Y3
- Y4
- Y18
- Y21
- P2511
- P2566
- P2567
- P2568
- P2808
-
最近活动
- 2024国庆CSP第二轮冲刺营结营测试-提高 IOI
- 2024国庆集训day04-2 OI
- 2024国庆集训day04-1 OI
- 2024国庆集训day03 OI
- 2024国庆集训day02 OI
- 2024国庆集训day01 OI
- 蓝桥杯省赛练习-202408 IOI
- 电子学会四级 作业
- 【CQMC】重庆小码王C++月赛 - 算法组 #2 IOI
- 【CQMC】重庆小码王C++月赛 - 语法组 #2 IOI
- 【CQMC】重庆小码王C++月赛 - 算法组 #1 IOI
- 【CQMC】重庆小码王C++月赛 - 语法组 #1 IOI
- 【蓝桥杯stema】202303真题练习 IOI
- 国庆结营测试 IOI
- 2023国庆集训1004 OI
- 2023国庆集训1003 OI
- 2023国庆集训1002 OI
- 全是水题! OI
- 金牌集训营编程测试-2-20230720 IOI
- 金牌集训营编程测试-2-20230716 IOI
- 暑期集训入营算法编程题目 IOI
- 暑期集训入营语法编程题目 IOI
- 暑期集训入营笔试题目 OI
- 蓝桥杯省赛模拟题2 IOI
- 蓝桥杯省赛模拟题1 IOI
- 蓝桥杯真题练习 IOI
- AC练习 作业
题目标签
- 初窥门径
- 84
- 驾轻就熟
- 41
- 顺序结构
- 39
- 一本通编程启蒙
- 39
- 略有小成
- 38
- 循环结构
- 33
- 分支结构
- 27
- 字符串
- 22
- 模拟
- 22
- 融会贯通
- 18
- 动态规划
- 12
- 其他
- 10
- 蓝桥杯
- 10
- 递归
- 10
- 栈
- 10
- 递推
- 9
- 一维数组
- 9
- 位运算
- 8
- DFS
- 8
- BFS
- 8