• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
magicat
博客园    首页    新随笔    联系   管理    订阅  订阅
04 2022 档案
STL算法总结

摘要:// AC one more times #include<iostream> #include<string> #include<map> #include<queue> #include<random> #include<time.h> #include<algorithm> #include< 阅读全文
posted @ 2022-04-30 01:15 magicat 阅读(43) 评论(0) 推荐(0)
UVA156 反片语 Ananagrams

摘要:传送门:UVA156 反片语 Ananagrams lrj 老师的代码我没有看,先是写了一个暴力,睡个午觉,起来再看 // AC one more times #include<iostream> #include<vector> #include<algorithm> #include<strin 阅读全文
posted @ 2022-04-29 13:11 magicat 阅读(58) 评论(0) 推荐(0)
UVA10815 安迪的第一个字典 Andy's First Dictionary

摘要:凌晨给卡了输入,应该是我少考虑一些情况了 晚上再写卡了一会输出 还是不太明白lrj 老师为什么放在set那里,vector,map也可以做,然后借这个机会学了set vector: // AC one more times #include<iostream> #include<vector> #i 阅读全文
posted @ 2022-04-28 23:48 magicat 阅读(36) 评论(0) 推荐(0)
UVA10104

摘要:板子题 当|X|+|Y|最小时,那么是ax+by=gcd(a,b) 输入格式乱搞,见谅 #include<iostream> using namespace std; typedef long long LL; LL exgcd(LL a,LL b,LL &x,LL &y) { if(b==0) { 阅读全文
posted @ 2022-04-21 22:11 magicat 阅读(36) 评论(2) 推荐(0)
类实现明天的日期

摘要:C++作业 #include <iostream> #include <algorithm> using namespace std; class TDate { public: TDate(int y,int m,int d):year(y),month(m),day(d) {} TDate(){ 阅读全文
posted @ 2022-04-21 20:30 magicat 阅读(45) 评论(0) 推荐(0)
C++复数的类+-*/

摘要:构造函数实现复数的加减乘除 实部虚部为0的时候有点小问题 上一次的在下面 #include<iostream> #include<complex> using namespace std; class Complex { public: Complex(){ r=0;i=0;} //void ini 阅读全文
posted @ 2022-04-07 14:01 magicat 阅读(74) 评论(0) 推荐(0)
4月记录贴

摘要:2022/4/1 状压dp摸鱼 状压dp旅行商 具体数学1.1~1.3 具体数学第一章作业 2022/4/2~4/4 就是摆了 玩euphoria 2022/4/5 有点摆 搜索练习 组合的输出 搜索练习[USACO19JAN]Icy Perimeters S 搜索练习 入门 填涂颜色 2022/4 阅读全文
posted @ 2022-04-05 14:02 magicat 阅读(43) 评论(0) 推荐(0)

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3