上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
摘要: # Notes 栈的模板 ```python class Stack(object): def __init__(self): self.items = [] def empty(self): return self.items == [] def push(self, item): self.it 阅读全文
posted @ 2022-08-10 19:40 PHarr 阅读(35) 评论(0) 推荐(0) 编辑
摘要: # 1:打印三角形 ```python n = int( input() ) for i in range( 1 , n + 1 ): for j in range( 0 , i ): print("*",end='') print("") ``` # 2:计算阶乘 ```cpp n = int( 阅读全文
posted @ 2022-08-10 10:57 PHarr 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 整活场,所以整体的氛围也比较轻松 A 宝藏 答案就是在题目的答案上面,当时我打开后不知道为什么,魔方只打乱了一次,然后就我把那一下拨回去就还原了用时 1s 得到答案后截图,在用取色工具取色,然后输出RGB 码就好 #include<bits/stdc++.h> using namespace std 阅读全文
posted @ 2022-08-09 15:21 PHarr 阅读(55) 评论(0) 推荐(0) 编辑
摘要: A 蕾凹娜的哀伤 完全背包的模板题,但是卡了一下时间要用二进制枚举优化一下 #include<bits/stdc++.h> #define int long long using namespace std; int read() { int x = 0, f = 1, ch = getchar() 阅读全文
posted @ 2022-08-01 09:46 PHarr 阅读(18) 评论(0) 推荐(0) 编辑
摘要: # 如何将自定义安装的软件加入到启动器中 这里以idea为例 首先打开`/usr/share/applications`这个目录新建一个`idea.desktop`文件,也可以在别的地方新建并修改好后复制到这个目录 ```shell [Desktop Entry] Type=Application 阅读全文
posted @ 2022-07-28 09:36 PHarr 阅读(46) 评论(0) 推荐(0) 编辑
摘要: LOJ 10120. 最敏捷的机器人 ST算法的模板题 #include <bits/stdc++.h> using namespace std; int read() { int x = 0, f = 1, ch = getchar(); while ((ch < '0' || ch > '9') 阅读全文
posted @ 2022-07-27 11:45 PHarr 阅读(27) 评论(0) 推荐(0) 编辑
摘要: A Alice and Bob 先把数字进行质因数分解,分解成 n 堆数字,每堆有 k 个,这样就变成了反尼姆博弈问题 反尼姆博弈的先手必胜条件有两个 异或和为 0 , 所有数等于 1 异或和不为 0 ,且有数大于 1 #include<bits/stdc++.h> #define int long 阅读全文
posted @ 2022-07-16 11:03 PHarr 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 220707个人赛(题目来源Codeforces Round #674 (Div. 3) ) 阅读全文
posted @ 2022-07-09 15:31 PHarr 阅读(28) 评论(0) 推荐(1) 编辑
摘要: A 洛姐打题日记 签到 #include<bits/stdc++.h> using namespace std; int32_t main() { string s; cin >> s; if( s == "AC" ) cout << "Accepted\n"; else if( s == "WA" 阅读全文
posted @ 2022-07-09 13:40 PHarr 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 水题一套 阅读全文
posted @ 2022-07-07 09:32 PHarr 阅读(153) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页