摘要: 与室友共同完成 要求是能将文本文档,图片文件,音频文件,视频文件等压缩成一个自解压文件. 双击自解压文件后能够自动解压缩成为原文件 自解压的功能的实现: 解压程序会生成一个包含压缩后数据的自解压程序源码`.cpp`文件 压缩数据以字面量的形式包含在该'.cpp'文件中 然后编译该`.cpp`文件生成 阅读全文
posted @ 2026-02-10 10:37 Kazuma_124 阅读(8) 评论(0) 推荐(0)
摘要: //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)
摘要: // 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)
摘要: //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)
摘要: //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)
摘要: //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)
摘要: //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)
摘要: /* codeforces,466AA. Cheap Travel 1张票a元, m张票b元, 买n张票, 最少多少钱 哪种方式均价更低就用哪种方式 要注意最终可能有的不足m张票的尾部 要计算哪种方式更划算 是用更高的均价单只买需要的票数 还是用更低的均价却要买满m张票 */ #include <i 阅读全文
posted @ 2025-03-07 20:18 Kazuma_124 阅读(36) 评论(0) 推荐(0)
摘要: /* codewars,Stop gninnipS My sdroW!,5264d2b162488dc400000001 设计一个函数,获取一个字符串, 将该字符串中长度大于等于5的单词反转, 将反转后的内容作为新字符串返回 */ #include <string> #include <iostre 阅读全文
posted @ 2025-03-07 20:14 Kazuma_124 阅读(35) 评论(0) 推荐(0)
摘要: /* 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)