摘要: #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long struct Fraction{ ll fenzi,fenmu; }; int gcd(int a,int b 阅读全文
posted @ 2024-04-20 11:43 YuKiCheng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 好累。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int parent[10010],exist[10010]; struct node{ int rs 阅读全文
posted @ 2024-04-20 04:49 YuKiCheng 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 注意判断条件那个pr,pl位置不要写反了。我两次都写错了。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long const int N = 40; int L[N 阅读全文
posted @ 2024-04-20 03:58 YuKiCheng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 记得初始化,初始化,初始化!!! #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int dist[510]; int edges[510][510]; bo 阅读全文
posted @ 2024-04-20 03:31 YuKiCheng 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 这题我比较直观的思路就是将分母和K计算出来公倍数,统一分母,然后分子从小到大依次枚举。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int gcd(int 阅读全文
posted @ 2024-04-20 00:23 YuKiCheng 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 字符串处理我的噩梦。 看dalao才写出来的,不过写的太久了,这个时长考试黄花菜都凉了。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long string ans 阅读全文
posted @ 2024-04-19 21:43 YuKiCheng 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long string cs; int main(){ getline(cin,cs); int res = 0; fo 阅读全文
posted @ 2024-04-19 20:03 YuKiCheng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int main() { int n,d; double e;//阈值 int ke=0,kong=0;//数 阅读全文
posted @ 2024-04-18 19:13 YuKiCheng 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 测试点1,可能给出的数字<=0,也是不合法的。 Dev-C好像不能打印出来╮这个字符,搞得我一直以为写错了,实际上并没有错。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll lo 阅读全文
posted @ 2024-04-18 17:28 YuKiCheng 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 记录一下问题。 v1(13分) #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int main(){ double r1,p1,r2,p2; cin>>r1 阅读全文
posted @ 2024-04-18 16:17 YuKiCheng 阅读(7) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示