会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Kazuma_124
博客园
首页
新随笔
联系
订阅
管理
2026年2月10日
大二上,数据结构与算法期末作业, 压缩与自解压程序,霍夫曼树实现压缩功能
摘要: 与室友共同完成 要求是能将文本文档,图片文件,音频文件,视频文件等压缩成一个自解压文件. 双击自解压文件后能够自动解压缩成为原文件 自解压的功能的实现: 解压程序会生成一个包含压缩后数据的自解压程序源码`.cpp`文件 压缩数据以字面量的形式包含在该'.cpp'文件中 然后编译该`.cpp`文件生成
阅读全文
posted @ 2026-02-10 10:37 Kazuma_124
阅读(8)
评论(0)
推荐(0)
2025年3月7日
C++,codeforces 2057A
摘要: //codeforces 2057A #include <iostream> void solve(){ int n,m;std::cin>>n>>m; std::cout<< (n>m?n:m)+1<<std::endl; } int main(){ int t;std::cin>>t; whil
阅读全文
posted @ 2025-03-07 20:25 Kazuma_124
阅读(40)
评论(0)
推荐(0)
C++,codeforces,2051D
摘要: // URL: https://codeforces.com/gym/2051/problem/D #include <iostream> #include <vector> #include <algorithm> void solve(){ long long ans = 0; int n;lo
阅读全文
posted @ 2025-03-07 20:24 Kazuma_124
阅读(39)
评论(0)
推荐(0)
C++,codeforces 2051C
摘要: //codeforces 2051C #include <iostream> #include <vector> void solve(){ int n,m,k;std::cin>>n>>m>>k; if(k==n){ for(int i = 0;i<m;++i){ std::cout<<'1';
阅读全文
posted @ 2025-03-07 20:23 Kazuma_124
阅读(38)
评论(0)
推荐(0)
C++,luogu,P11679 [Algo Beat Contest 001 A] Animal Beheaded
摘要: //luogu,P11679 [Algo Beat Contest 001 A] Animal Beheaded #include <string> #include <iostream> int main(){ int a;std::cin>>a; std::string str; std::ci
阅读全文
posted @ 2025-03-07 20:21 Kazuma_124
阅读(18)
评论(0)
推荐(0)
C++,luogu,P11681 [Algo Beat Contest 001 C] Creating a Queue
摘要: //luogu,P11681 [Algo Beat Contest 001 C] Creating a Queue #include <iostream> #include <set> int main(){ int N,M;std::cin>>N>>M; int countOfZero = 0;
阅读全文
posted @ 2025-03-07 20:21 Kazuma_124
阅读(27)
评论(0)
推荐(0)
C++,luogu,P11680 [Algo Beat Contest 001 B] Between Head and Tail
摘要: //luogu,P11680 [Algo Beat Contest 001 B] Between Head and Tail #include <algorithm> #include <iostream> void solve(){ int l,r;std::cin>>l>>r; for(int
阅读全文
posted @ 2025-03-07 20:20 Kazuma_124
阅读(26)
评论(0)
推荐(0)
C++,codeforces,466AA. Cheap Travel
摘要: /* codeforces,466AA. Cheap Travel 1张票a元, m张票b元, 买n张票, 最少多少钱 哪种方式均价更低就用哪种方式 要注意最终可能有的不足m张票的尾部 要计算哪种方式更划算 是用更高的均价单只买需要的票数 还是用更低的均价却要买满m张票 */ #include <i
阅读全文
posted @ 2025-03-07 20:18 Kazuma_124
阅读(36)
评论(0)
推荐(0)
C++,codewars,Stop gninnipS My sdroW!,5264d2b162488dc400000001
摘要: /* codewars,Stop gninnipS My sdroW!,5264d2b162488dc400000001 设计一个函数,获取一个字符串, 将该字符串中长度大于等于5的单词反转, 将反转后的内容作为新字符串返回 */ #include <string> #include <iostre
阅读全文
posted @ 2025-03-07 20:14 Kazuma_124
阅读(35)
评论(0)
推荐(0)
C++,codeforces, 1A, Theatre Square
摘要: /* codeforces, 1A, Theatre Square 对n*m的方格进行铺砖,每块砖的边长为a,最少需要多少块砖,砖可以裁剪 */ /* n和m除以a向上取整,然后相乘即可 */ #include <iostream> int main(){ int n,m,a; std::cin>>
阅读全文
posted @ 2025-03-07 20:13 Kazuma_124
阅读(24)
评论(0)
推荐(0)
下一页
公告