随笔分类 -  OJ

摘要:#include<stdio.h> #include<algorithm> #include<string.h> #include<iostream> #include<math.h> using namespace std; struct Fraction{ long long up,down; 阅读全文
posted @ 2021-03-05 17:07 橘某 阅读(128) 评论(0) 推荐(0)
摘要:gets不能用所以改用fets(),fgets会把换行符也存下来所以让得到的数组长度-1 第一次用fgets第二个参数没注意写太小了,检查了15分钟+才检查出来.....这次应该记牢了把 算法笔记上的方法是双重for循环,时间复杂度是len1*len2 改成两次for循环那么复杂度就是max(len 阅读全文
posted @ 2021-02-23 11:54 橘某 阅读(68) 评论(0) 推荐(0)