• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
magicat
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
2022年5月19日
某次作业
摘要: #include<iostream> #include<string> using namespace std; class Teacher { public: void set2(string a,string b,string c,string d,string e,string f); voi 阅读全文
posted @ 2022-05-19 16:26 magicat 阅读(40) 评论(0) 推荐(0)
2022年5月16日
勾股数组表(10以内),数论概论习题3.1
摘要: 直接两个for暴力穷举判断,观察数表发现和乘法表的数量差不多,再把数据范围扩大也是如此。留个坑() // AC one more times #include <iostream> using namespace std; int main() { for(int v=1;v<=9;v++) { p 阅读全文
posted @ 2022-05-16 10:59 magicat 阅读(92) 评论(0) 推荐(0)
2022年5月12日
友元函数求两点的距离
摘要: #include<iostream> #include<cmath> using namespace std; class point { friend double get(point,point); public: point(int a,int b) { x=a,y=b; } private: 阅读全文
posted @ 2022-05-12 13:19 magicat 阅读(97) 评论(0) 推荐(0)
2022年5月9日
Tokitsukaze and Strange Inequality Codeforces Round #789 (Div. 2) C
摘要: 复盘 前缀和的姿势增加了 前缀和的作法是处理下 a,c b,d 计算当c为第i个时, l[c][a] 为满足条件个数 c取 1 ~ n-1 a取1 ~ c-1 注意循环的顺序的 当b为第i个时 r[b][d] 为满足条件的个数 b取 2 ~ n j取 n ~ b+1 注意循环的顺序最后枚举bc b 阅读全文
posted @ 2022-05-09 12:45 magicat 阅读(67) 评论(0) 推荐(0)
2022年5月8日
UVA227 谜题 Puzzle
摘要: UVA227 谜题 Puzzle 听过UVA输出格式有坑的,第一次做输入格式有坑的题,不愧是WF的题呀! 输入注意的细节挺多的,我以为是空格,结果是没有的 纪念一下 #include <bits/stdc++.h> using namespace std; int main() { int kase 阅读全文
posted @ 2022-05-08 20:52 magicat 阅读(69) 评论(0) 推荐(0)
2022年4月30日
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 阅读(34) 评论(0) 推荐(0)
2022年4月29日
UVA156 反片语 Ananagrams
摘要: 传送门:UVA156 反片语 Ananagrams lrj 老师的代码我没有看,先是写了一个暴力,睡个午觉,起来再看 // AC one more times #include<iostream> #include<vector> #include<algorithm> #include<strin 阅读全文
posted @ 2022-04-29 13:11 magicat 阅读(49) 评论(0) 推荐(0)
2022年4月28日
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 阅读(30) 评论(0) 推荐(0)
2022年4月21日
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 阅读(30) 评论(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 阅读(37) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3